Merge pull request #3377 from urbit/mp/chat/break-word

chat: break overflowing one-word messages
This commit is contained in:
matildepark 2020-08-26 19:44:58 -04:00 committed by GitHub
commit 5c380a46a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 6 deletions

View File

@ -3,6 +3,7 @@ import { Link } from 'react-router-dom';
import ReactMarkdown from 'react-markdown';
import RemarkDisableTokenizers from 'remark-disable-tokenizers';
import urbitOb from 'urbit-ob';
import { Box } from '@tlon/indigo-react';
const DISABLED_BLOCK_TOKENS = [
'indentedCode',
@ -55,9 +56,9 @@ export default class TextContent extends Component {
);
} else {
return (
<section className="chat-md-message">
<Box style={{ overflowWrap: 'break-word' }}>
<MessageMarkdown source={content.text} />
</section>
</Box>
);
}
}

View File

@ -70,10 +70,6 @@ h2 {
line-height: 16px;
}
.chat-md-message > pre {
overflow-x: auto;
}
.mono {
font-family: "Source Code Pro", monospace;
}