gpt-3.5-turbo-0301· OpenAI
WildChat-4.8M (AI2)
<div v-for="entry in chatEntries" :class="['chat-entry', entry.isRobot ? 'robot-entry' :…
- User
</div>我项目里的pre中的文字内容超出长度后为什么不换行呢直接跑到外面去了 - Assistant
可能是由于某些样式或者布局导致的。可以尝试添加以下样式:
.chat-entry-content { white-space: pre-wrap; word-wrap: break-word; }
这样设置后,文字内容超出长度时会自动换行,适应父元素的宽度。