From cdf8cadac0f2ed7c288b7e2c458b94414d5380b5 Mon Sep 17 00:00:00 2001 From: Ilya Bondar Date: Tue, 23 Apr 2024 22:38:35 +0200 Subject: [PATCH] fix(chat): fix text wrapping (Issue #140) --- apps/chat/src/components/Markdown/ChatMDComponent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/chat/src/components/Markdown/ChatMDComponent.tsx b/apps/chat/src/components/Markdown/ChatMDComponent.tsx index 539914b1bb..3804d1afe6 100644 --- a/apps/chat/src/components/Markdown/ChatMDComponent.tsx +++ b/apps/chat/src/components/Markdown/ChatMDComponent.tsx @@ -110,7 +110,7 @@ const ChatMDComponent = ({ const isOverlay = useAppSelector(SettingsSelectors.selectIsOverlay); const mdClassNames = classnames( - 'prose min-w-full dark:prose-invert prose-a:text-accent-primary prose-a:no-underline hover:prose-a:underline', + 'prose min-w-full whitespace-pre-wrap dark:prose-invert prose-a:text-accent-primary prose-a:no-underline hover:prose-a:underline', { 'max-w-none': isChatFullWidth, 'text-sm': isOverlay,