Skip to content

Commit 4847c2c

Browse files
committed
chore(chat): improve assistant message expanded class
1 parent 374a849 commit 4847c2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

entrypoints/sidepanel/components/Chat/Messages/Assistant.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@
7676
<ScrollContainer
7777
v-if="showReasoning"
7878
ref="scrollContainerRef"
79-
containerClass="overscroll-auto"
80-
:class="['wrap-anywhere pl-6 border-[#AEB5BD] overflow-auto', showClampedReasoning ? 'h-[3.3em] leading-[1.5em]' : '']"
79+
:containerClass="classNames('overscroll-auto overflow-auto transition-height duration-200 [interpolate-size:allow-keywords] wrap-anywhere pl-6', showClampedReasoning ? 'h-[3.3em] leading-[1.5em]' : 'h-auto')"
8180
:arrivalShadow="{
8281
top: { color: '#F5F6FB', size: 12, offset: 8 },
8382
bottom: { color: '#F5F6FB', size: 12, offset: 8 }
@@ -137,6 +136,7 @@ import ScrollContainer from '@/components/ScrollContainer.vue'
137136
import Text from '@/components/ui/Text.vue'
138137
import { AgentMessageV1, AssistantMessageV1 } from '@/types/chat'
139138
import { getUserConfig } from '@/utils/user-config'
139+
import { classNames } from '@/utils/vue/utils'
140140
const props = defineProps<{
141141
message: AssistantMessageV1 | AgentMessageV1
142142
}>()
@@ -153,7 +153,7 @@ const { t } = useI18n()
153153
const userConfig = await getUserConfig()
154154
const thinkingVisibility = userConfig.chat.thinkingVisibility.toRef()
155155
const expanded = ref(false)
156-
const scrollContainerRef = ref()
156+
const scrollContainerRef = ref<InstanceType<typeof ScrollContainer>>()
157157
158158
// Helper computed properties for cleaner logic
159159
const isThinking = computed(() => !message.value.content && !message.value.done)

0 commit comments

Comments
 (0)