parent
89fdb0b9a5
commit
a23666aaf0
|
|
@ -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>;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue