mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-04 10:52:18 +03:00
publish: fixes codeblock wrapping behavior
fixes https://github.com/urbit/landscape/issues/324
This commit is contained in:
parent
5020ab48e9
commit
93d5302b16
@ -109,7 +109,7 @@ export function Note(props: NoteProps & RouteComponentProps) {
|
|||||||
<Text ml={2}>{adminLinks}</Text>
|
<Text ml={2}>{adminLinks}</Text>
|
||||||
</Box>
|
</Box>
|
||||||
</Col>
|
</Col>
|
||||||
<Box color="black" className="md" style={{ overflowWrap: "break-word" }}>
|
<Box color="black" className="md" style={{ overflowWrap: "break-word", overflow: "hidden" }}>
|
||||||
<ReactMarkdown source={body} linkTarget={"_blank"} />
|
<ReactMarkdown source={body} linkTarget={"_blank"} />
|
||||||
</Box>
|
</Box>
|
||||||
<NoteNavigation
|
<NoteNavigation
|
||||||
|
@ -192,6 +192,7 @@
|
|||||||
}
|
}
|
||||||
.md code, .md pre {
|
.md code, .md pre {
|
||||||
font-family: "Source Code Pro", mono;
|
font-family: "Source Code Pro", mono;
|
||||||
|
white-space: pre-wrap;
|
||||||
}
|
}
|
||||||
.md ul>li, .md ol>li {
|
.md ul>li, .md ol>li {
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
|
Loading…
Reference in New Issue
Block a user