fix(ui): correct cursor position in LlmQuickStartDemo and adjust image width

This commit is contained in:
sanbuphy
2026-01-16 22:01:19 +08:00
parent 047118a7f0
commit 82be39a9ac
2 changed files with 20 additions and 12 deletions
@@ -26,18 +26,25 @@
{{ msg.content }}
</div>
<div v-else class="assistant-content">
<pre v-if="msg.isCode"><code>{{ msg.content }}</code></pre>
<div v-else>{{ msg.content }}</div>
<pre v-if="msg.isCode"><code>{{ msg.content }}<span
v-if="
isGenerating &&
index === messages.length - 1
"
class="cursor"
>|</span
></code></pre>
<div v-else>
{{ msg.content }}<span
v-if="
isGenerating &&
index === messages.length - 1
"
class="cursor"
>|</span
>
</div>
</div>
<span
v-if="
msg.role === 'assistant' &&
isGenerating &&
index === messages.length - 1
"
class="cursor"
>|</span
>
</div>
</div>
</div>
@@ -257,6 +264,7 @@ const scrollToBottom = () => {
line-height: 1.6;
position: relative;
word-wrap: break-word;
white-space: pre-wrap;
}
.message.user .content {