Fix: also wrap non-breaking words in chat messages, handle whitespace (#13211)

This commit is contained in:
shamoon
2026-07-22 22:25:19 -07:00
committed by GitHub
parent 5ea8cf2335
commit be40356d2e
2 changed files with 2 additions and 1 deletions
@@ -9,7 +9,7 @@
@for (message of messages(); track message) {
<div class="message d-flex flex-row small" [class.justify-content-end]="message.role === 'user'">
<div class="p-2 m-2" [class.bg-body]="message.role === 'user'">
<span>
<span class="text-break">
{{ message.content }}
@if (message.isStreaming) { <span class="blinking-cursor">|</span> }
</span>
@@ -5,6 +5,7 @@
.chat-messages {
max-height: 350px;
overflow-y: auto;
white-space: pre-wrap;
}
.chat-references {