Skip to content

Commit

Permalink
Fix too much whitespace on markdown message
Browse files Browse the repository at this point in the history
Fixes #463
  • Loading branch information
jmattheis committed Jan 12, 2022
1 parent 89fdb0b commit a23666a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/src/message/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ const styles = (theme: Theme) =>
imageWrapper: {
display: 'flex',
},
content: {
plainContent: {
whiteSpace: 'pre-wrap',
},
content: {
wordBreak: 'break-all',
'& p': {
margin: 0,
Expand Down Expand Up @@ -89,7 +91,7 @@ class Message extends React.PureComponent<IProps & WithStyles<typeof styles>> {
return <Markdown>{content}</Markdown>;
case RenderMode.Plain:
default:
return content;
return <span className={this.props.classes.plainContent}>{content}</span>;
}
};

Expand Down

0 comments on commit a23666a

Please sign in to comment.