Skip to content

Commit 11ef97d

Browse files
committed
style(chat): better distinction between user and ai
1 parent 2bbe79a commit 11ef97d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

apps/frontend/app/components/chat/ChatInterface.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,13 @@ function alertIsStreaming(input: string) {
314314
v-for="m of messages" :key="m.id" class="flex"
315315
:class="m.role === 'user' ? 'justify-end' : 'justify-start'"
316316
>
317-
<Card class="max-w-full border-primary-200 bg-transparent shadow-md md:max-w-2xl">
317+
<Card
318+
class="bg-transparent shadow-md md:max-w-2xl"
319+
:class="[
320+
m.role === 'user' ? 'border-secondary-200' : 'border-primary-200',
321+
m.role === 'user' ? 'max-w-80%' : 'max-w-full',
322+
]"
323+
>
318324
<!-- <CardHeader class="px-4 py-2">
319325
<CardTitle class="text-sm font-semibold">
320326
{{ m.role === 'user' ? $t('pages.chat.userLabel') : $t('pages.chat.aiLabel') }}

0 commit comments

Comments
 (0)