fix: bug fix

This commit is contained in:
dataeaseShu
2025-07-29 18:15:33 +08:00
parent 74570ea2d1
commit 92a572d873
+6 -4
View File
@@ -22,10 +22,7 @@ withDefaults(
<logo_fold v-if="!hideAvatar" />
</el-icon>
</div>
<div
:style="{ width: msg.role === 'assistant' ? 0 : '100%' }"
:class="{ 'row-full': msg.role === 'assistant' }"
>
<div :class="{ 'row-full': msg.role === 'assistant', 'width-auto': msg.role === 'user' }">
<slot></slot>
</div>
</div>
@@ -59,6 +56,11 @@ withDefaults(
width: 0;
}
.width-auto {
width: auto;
max-width: 100%;
}
.ai-avatar {
font-size: 28px;
background: transparent;