Skip to content

Commit 419cd29

Browse files
committed
fix: The following code block does not wrap the text
1 parent fcab108 commit 419cd29

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • ui/src/views/chat/components/Message

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ onUnmounted(() => {
103103
104104
<template>
105105
<div :class="wrapClass">
106-
<div ref="textRef" class="leading-relaxed break-words">
106+
<div ref="textRef" class="leading-relaxed">
107107
<span v-if="props.message?.content === 'loading' && !role" class="loading-box">
108108
<span></span>
109109
<span></span>
110110
<span></span>
111111
</span>
112-
<div v-else class="inline-block markdown-body" v-html="text" />
112+
<div v-else class="markdown-body flex flex-col" v-html="text" />
113113
</div>
114114
</div>
115115
</template>
@@ -157,5 +157,5 @@ onUnmounted(() => {
157157
}
158158
.loading-box span:nth-child(3){
159159
animation-delay: 0.39s;
160-
}
160+
}
161161
</style>

0 commit comments

Comments
 (0)