From 865f7eea296e544b2eb1ab8c1f322208eaf5eb05 Mon Sep 17 00:00:00 2001
From: timothycarambat <rambat1010@gmail.com>
Date: Thu, 9 Jan 2025 13:32:54 -0800
Subject: [PATCH] patch scrollbars - with regress #2943

---
 .../ChatContainer/ChatHistory/HistoricalMessage/index.jsx       | 2 +-
 .../ChatContainer/ChatHistory/PromptReply/index.jsx             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/index.jsx
index 1f4b47fad..2d581e38d 100644
--- a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/index.jsx
+++ b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/index.jsx
@@ -96,7 +96,7 @@ const HistoricalMessage = ({
               saveChanges={saveEditedMessage}
             />
           ) : (
-            <div className="overflow-x-scroll break-words">
+            <div className="break-words">
               <span
                 className="flex flex-col gap-y-1"
                 dangerouslySetInnerHTML={{
diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/PromptReply/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/PromptReply/index.jsx
index 3dd100dd4..a562a8981 100644
--- a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/PromptReply/index.jsx
+++ b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/PromptReply/index.jsx
@@ -62,7 +62,7 @@ const PromptReply = ({
         <div className="flex gap-x-5">
           <WorkspaceProfileImage workspace={workspace} />
           <span
-            className="overflow-x-scroll break-words"
+            className="break-words"
             dangerouslySetInnerHTML={{ __html: renderMarkdown(reply) }}
           />
         </div>
-- 
GitLab