ui: fullsize ai answered content
All checks were successful
CI / lint (push) Successful in 1m2s
CI / test (push) Successful in 1m6s

This commit is contained in:
Timothy Yin 2025-05-27 13:56:11 +08:00
parent 233725a103
commit 3dfe39de85

View File

@ -161,16 +161,16 @@ const onDeleteConversation = (conversationId: string) => {
>
<div
class="gradient-border"
:class="
:class="`${
message.role === 'assistant'
&& !currentConversation?.finished_at
&& message.content
&& !currentConversation?.finished_at
&& message.content
? ''
: 'inactive'
"
} ${message.role == 'user' ? 'w-fit' : 'w-full'}`"
>
<div
class="w-fit px-4 py-3 rounded-lg max-w-prose shadow bg-white dark:bg-gray-800 border"
class="w-full px-4 py-3 rounded-lg shadow bg-white dark:bg-gray-800 border"
:class="[
message.role == 'user' ? 'rounded-br-none' : 'rounded-bl-none',
]"
@ -191,13 +191,15 @@ const onDeleteConversation = (conversationId: string) => {
</div>
</div>
<div
v-if="message.role === 'assistant' && currentConversation?.finished_at && message.content"
v-if="
message.role === 'assistant'
&& currentConversation?.finished_at
&& message.content
"
class="pt-4 flex items-center gap-2"
>
<!-- download button -->
<Button
size="sm"
>
<Button size="sm">
<Icon name="tabler:plus" />
加入教案库
</Button>