diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/index.jsx index 1f4b47fad0bfd9efe6b8cb0299611ad869c6cd60..2d581e38dabd8a671a7ba1ae60f804999b29bec3 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 3dd100dd4a09373d01eeb7b18d7a98e44b6f139a..a562a89811db92bb24a67750c49bdf45879d8a7d 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>