ui: fullsize ai answered content
This commit is contained in:
parent
233725a103
commit
3dfe39de85
@ -161,16 +161,16 @@ const onDeleteConversation = (conversationId: string) => {
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="gradient-border"
|
class="gradient-border"
|
||||||
:class="
|
:class="`${
|
||||||
message.role === 'assistant'
|
message.role === 'assistant'
|
||||||
&& !currentConversation?.finished_at
|
&& !currentConversation?.finished_at
|
||||||
&& message.content
|
&& message.content
|
||||||
? ''
|
? ''
|
||||||
: 'inactive'
|
: 'inactive'
|
||||||
"
|
} ${message.role == 'user' ? 'w-fit' : 'w-full'}`"
|
||||||
>
|
>
|
||||||
<div
|
<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="[
|
:class="[
|
||||||
message.role == 'user' ? 'rounded-br-none' : 'rounded-bl-none',
|
message.role == 'user' ? 'rounded-br-none' : 'rounded-bl-none',
|
||||||
]"
|
]"
|
||||||
@ -191,13 +191,15 @@ const onDeleteConversation = (conversationId: string) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</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"
|
class="pt-4 flex items-center gap-2"
|
||||||
>
|
>
|
||||||
<!-- download button -->
|
<!-- download button -->
|
||||||
<Button
|
<Button size="sm">
|
||||||
size="sm"
|
|
||||||
>
|
|
||||||
<Icon name="tabler:plus" />
|
<Icon name="tabler:plus" />
|
||||||
加入教案库
|
加入教案库
|
||||||
</Button>
|
</Button>
|
||||||
|
Loading…
Reference in New Issue
Block a user