|
1 | 1 | <template> |
2 | | - <span class="bg-lightNavbar dark:bg-darkNavbar absolute flex items-center text-listTableHeadingText dark:text-darkListTableHeadingText justify-center w-5 h-5 bg-brand-softer rounded-full -start-[0.68rem] ring-4 ring-lightNavbar dark:ring-darkNavbar ring-default"> |
3 | | - <div class="w-5 h-5 rounded-full flex items-center justify-center"> |
4 | | - <IconBrainOutline class="w-4 h-4" /> |
5 | | - </div> |
6 | | - </span> |
7 | | - <h3 |
8 | | - class="flex items-center mb-1 text-sm my-2 ml-3 gap-1 cursor-pointer select-none hover:opacity-80 text-listTableHeadingText dark:text-darkListTableHeadingText" |
9 | | - @click="isExpanded = !isExpanded" |
10 | | - > |
11 | | - <span class="font-semibold">{{ reasoningTitle }}</span> |
12 | | - <ThreeDotsAnimation v-if="isStreaming"/> |
13 | | - <IconAngleDownOutline |
14 | | - :class="isExpanded ? 'rotate-180' : 'rotate-0'" |
15 | | - class="transition-transform duration-200" |
16 | | - /> |
17 | | - </h3> |
18 | | - <transition name="expand"> |
19 | | - <CustomAutoScrollContainer |
20 | | - v-if="isExpanded" v-show="isExpanded" class="mb-4 text-sm max-h-64 pl-4" |
21 | | - :wrapperStyle="{ |
22 | | - marginRight: '8rem', |
23 | | - }" |
24 | | - :enabled="isStreaming" |
| 2 | + <li class="mb-6 ms-2 z-50 overflow-hidden"> |
| 3 | + <span class="bg-lightNavbar dark:bg-darkNavbar absolute flex items-center text-listTableHeadingText dark:text-darkListTableHeadingText justify-center w-5 h-5 bg-brand-softer rounded-full -start-[0.68rem] ring-4 ring-lightNavbar dark:ring-darkNavbar ring-default"> |
| 4 | + <div class="w-5 h-5 rounded-full flex items-center justify-center"> |
| 5 | + <IconBrainOutline class="w-4 h-4" /> |
| 6 | + </div> |
| 7 | + </span> |
| 8 | + <h3 |
| 9 | + class=" flex items-center mb-1 text-sm ml-3 gap-1 cursor-pointer select-none hover:opacity-80 text-listTableHeadingText dark:text-darkListTableHeadingText" |
| 10 | + @click="isExpanded = !isExpanded" |
25 | 11 | > |
26 | | - <IncremarkContent |
27 | | - :content="reasoningText" |
| 12 | + <span class="font-semibold">{{ reasoningTitle }}</span> |
| 13 | + <ThreeDotsAnimation v-if="isStreaming"/> |
| 14 | + <IconAngleDownOutline |
| 15 | + :class="isExpanded ? 'rotate-180' : 'rotate-0'" |
| 16 | + class="transition-transform duration-200" |
28 | 17 | /> |
29 | | - </CustomAutoScrollContainer> |
30 | | - </transition> |
| 18 | + </h3> |
| 19 | + <transition name="expand"> |
| 20 | + <CustomAutoScrollContainer |
| 21 | + v-if="isExpanded" v-show="isExpanded" class="mb-4 text-sm max-h-64 pl-4" |
| 22 | + :wrapperStyle="{ |
| 23 | + marginRight: '8rem', |
| 24 | + }" |
| 25 | + :enabled="isStreaming" |
| 26 | + > |
| 27 | + <IncremarkContent |
| 28 | + :content="reasoningText" |
| 29 | + /> |
| 30 | + </CustomAutoScrollContainer> |
| 31 | + </transition> |
| 32 | + </li> |
31 | 33 | </template> |
32 | 34 |
|
33 | 35 |
|
@@ -67,7 +69,7 @@ watch(() => props.state, (newValue: IPart['state']) => { |
67 | 69 | <style scoped> |
68 | 70 | .expand-enter-active, |
69 | 71 | .expand-leave-active { |
70 | | - transition: all 0.3s ease; |
| 72 | + transition: all 300ms ease; |
71 | 73 | } |
72 | 74 |
|
73 | 75 | .expand-enter-from, |
|
0 commit comments