From a23666aaf0d5e251273ec104effd67f7b8a0cfba Mon Sep 17 00:00:00 2001 From: Jannis Mattheis Date: Wed, 12 Jan 2022 18:48:31 +0100 Subject: [PATCH] Fix too much whitespace on markdown message Fixes #463 --- ui/src/message/Message.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/src/message/Message.tsx b/ui/src/message/Message.tsx index a0148f8f..078b42c0 100644 --- a/ui/src/message/Message.tsx +++ b/ui/src/message/Message.tsx @@ -48,8 +48,10 @@ const styles = (theme: Theme) => imageWrapper: { display: 'flex', }, - content: { + plainContent: { whiteSpace: 'pre-wrap', + }, + content: { wordBreak: 'break-all', '& p': { margin: 0, @@ -89,7 +91,7 @@ class Message extends React.PureComponent> { return {content}; case RenderMode.Plain: default: - return content; + return {content}; } };