We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bbe79a commit 11ef97dCopy full SHA for 11ef97d
1 file changed
apps/frontend/app/components/chat/ChatInterface.vue
@@ -314,7 +314,13 @@ function alertIsStreaming(input: string) {
314
v-for="m of messages" :key="m.id" class="flex"
315
:class="m.role === 'user' ? 'justify-end' : 'justify-start'"
316
>
317
- <Card class="max-w-full border-primary-200 bg-transparent shadow-md md:max-w-2xl">
+ <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
+ >
324
<!-- <CardHeader class="px-4 py-2">
325
<CardTitle class="text-sm font-semibold">
326
{{ m.role === 'user' ? $t('pages.chat.userLabel') : $t('pages.chat.aiLabel') }}
0 commit comments