Skip to content

Commit a9ae1ea

Browse files
author
Kerwin
committed
chore: 回退光标问题
1 parent 62501b6 commit a9ae1ea

File tree

1 file changed

+4
-6
lines changed
  • src/views/chat/components/Message

1 file changed

+4
-6
lines changed

src/views/chat/components/Message/Text.vue

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,12 @@ defineExpose({ textRef })
6666
<template>
6767
<div class="text-black" :class="wrapClass">
6868
<div ref="textRef" class="leading-relaxed break-words">
69-
<div v-if="!inversion">
70-
<div v-if="!asRawText" class="markdown-body" v-html="text" />
71-
<div v-else class="whitespace-pre-wrap" v-text="text" />
69+
<div v-if="!inversion" class="flex items-end">
70+
<div v-if="!asRawText" class="w-full markdown-body" v-html="text" />
71+
<div v-else class="w-full whitespace-pre-wrap" v-text="text" />
72+
<span v-if="loading" class="dark:text-white w-[4px] h-[20px] block animate-blink" />
7273
</div>
7374
<div v-else class="whitespace-pre-wrap" v-text="text" />
74-
<template v-if="loading">
75-
<span class="dark:text-white w-[4px] h-[20px] block animate-blink" />
76-
</template>
7775
</div>
7876
</div>
7977
</template>

0 commit comments

Comments
 (0)