mirror of
https://github.com/urbit/shrub.git
synced 2024-12-18 15:55:00 +03:00
chat: scroll on code overflow
Adds a scroll container if code is posted and the code will overflow the width of the page. Fixes #2829
This commit is contained in:
parent
a2970ce929
commit
77731f6ca0
@ -154,7 +154,7 @@ export class Message extends Component {
|
||||
);
|
||||
} else {
|
||||
return (
|
||||
<section>
|
||||
<section className="chat-md-message">
|
||||
<MessageMarkdown
|
||||
source={letter.text}
|
||||
/>
|
||||
|
@ -60,6 +60,10 @@ 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