From be40356d2e1c606b6f0ce4c7d68d1d711d34a883 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 22 Jul 2026 22:25:19 -0700 Subject: [PATCH] Fix: also wrap non-breaking words in chat messages, handle whitespace (#13211) --- src-ui/src/app/components/chat/chat/chat.component.html | 2 +- src-ui/src/app/components/chat/chat/chat.component.scss | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src-ui/src/app/components/chat/chat/chat.component.html b/src-ui/src/app/components/chat/chat/chat.component.html index 19859063f..00c65459e 100644 --- a/src-ui/src/app/components/chat/chat/chat.component.html +++ b/src-ui/src/app/components/chat/chat/chat.component.html @@ -9,7 +9,7 @@ @for (message of messages(); track message) {
- + {{ message.content }} @if (message.isStreaming) { | } diff --git a/src-ui/src/app/components/chat/chat/chat.component.scss b/src-ui/src/app/components/chat/chat/chat.component.scss index ccd714f3c..f14be66e2 100644 --- a/src-ui/src/app/components/chat/chat/chat.component.scss +++ b/src-ui/src/app/components/chat/chat/chat.component.scss @@ -5,6 +5,7 @@ .chat-messages { max-height: 350px; overflow-y: auto; + white-space: pre-wrap; } .chat-references {