[object Object]

← back to Exo

Fix bubble behavior when user passes long text without any spaces

45123665806ee313c70bde4ffe69ed9907e7ee1b · 2025-01-26 00:02:17 +0300 · sigseg5

Files touched

Diff

commit 45123665806ee313c70bde4ffe69ed9907e7ee1b
Author: sigseg5 <sigseg5@protonmail.com>
Date:   Sun Jan 26 00:02:17 2025 +0300

    Fix bubble behavior when user passes long text without any spaces
---
 exo/tinychat/index.css | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/exo/tinychat/index.css b/exo/tinychat/index.css
index 6d812f44..d94a5a23 100644
--- a/exo/tinychat/index.css
+++ b/exo/tinychat/index.css
@@ -157,6 +157,12 @@ main {
   background-color: var(--primary-color);
   color: #000;
 }
+
+.message-role-user p {
+  white-space: pre-wrap;
+  word-wrap: break-word;
+}
+
 .download-progress {
   position: fixed;
   bottom: 11rem;

← 9525c0e7 Add adaptive padding for user and assistant messages on widt  ·  back to Exo  ·  Adjust truncate size in history list for text without any sp fb841a1f →