prevented text overflowing on small displays

- set `word-wrap` to `break-word`
This commit is contained in:
Kim, Jimin 2022-03-26 17:50:18 +09:00
parent f9a8a142f0
commit 671c529ee2

View file

@ -85,8 +85,10 @@ const codeCSS = css`
}
}}
/* line code */
:not(pre) > code {
font-family: ${theming.font.code};
word-wrap: break-word;
color: ${(props) =>
theming.theme(props.theme.currentTheme, {
light: theming.light.color1,
@ -106,6 +108,7 @@ const codeCSS = css`
padding: 0 3px;
}
/* code block */
pre > code {
font-family: ${theming.font.code};
border: ${(props) =>