Fix too much whitespace on markdown message

Fixes #463
This commit is contained in:
Jannis Mattheis 2022-01-12 18:48:31 +01:00
parent 89fdb0b9a5
commit a23666aaf0
1 changed files with 4 additions and 2 deletions

View File

@ -48,8 +48,10 @@ const styles = (theme: Theme) =>
imageWrapper: { imageWrapper: {
display: 'flex', display: 'flex',
}, },
content: { plainContent: {
whiteSpace: 'pre-wrap', whiteSpace: 'pre-wrap',
},
content: {
wordBreak: 'break-all', wordBreak: 'break-all',
'& p': { '& p': {
margin: 0, margin: 0,
@ -89,7 +91,7 @@ class Message extends React.PureComponent<IProps & WithStyles<typeof styles>> {
return <Markdown>{content}</Markdown>; return <Markdown>{content}</Markdown>;
case RenderMode.Plain: case RenderMode.Plain:
default: default:
return content; return <span className={this.props.classes.plainContent}>{content}</span>;
} }
}; };