Skip to content

Commit 92a572d

Browse files
committed
fix: bug fix
1 parent 74570ea commit 92a572d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

frontend/src/views/chat/ChatRow.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ withDefaults(
2222
<logo_fold v-if="!hideAvatar" />
2323
</el-icon>
2424
</div>
25-
<div
26-
:style="{ width: msg.role === 'assistant' ? 0 : '100%' }"
27-
:class="{ 'row-full': msg.role === 'assistant' }"
28-
>
25+
<div :class="{ 'row-full': msg.role === 'assistant', 'width-auto': msg.role === 'user' }">
2926
<slot></slot>
3027
</div>
3128
</div>
@@ -59,6 +56,11 @@ withDefaults(
5956
width: 0;
6057
}
6158
59+
.width-auto {
60+
width: auto;
61+
max-width: 100%;
62+
}
63+
6264
.ai-avatar {
6365
font-size: 28px;
6466
background: transparent;

0 commit comments

Comments
 (0)