mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
Merge pull request #3377 from urbit/mp/chat/break-word
chat: break overflowing one-word messages
This commit is contained in:
commit
5c380a46a5
@ -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>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -70,10 +70,6 @@ h2 {
|
||||
line-height: 16px;
|
||||
}
|
||||
|
||||
.chat-md-message > pre {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.mono {
|
||||
font-family: "Source Code Pro", monospace;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user