Skip to content

Commit

Permalink
fix: 🐛 fix v-html over-flow (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
bingryan authored Nov 23, 2023
1 parent 4a08d92 commit 35898ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/views/chat/components/message/Text.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@
:style="bdStyle"
@contextmenu.prevent="onContextMenu($event, props.index)">
<div ref="textRef" class="leading-relaxed break-words">
<div v-if="isRenderMarkdown" class="markdown-body" v-html="text" />
<div
v-if="isRenderMarkdown"
class="markdown-body max-w-full"
v-html="text" />
<div v-else class="whitespace-pre-wrap" v-text="text" />
</div>
</div>
Expand Down

0 comments on commit 35898ea

Please sign in to comment.