slightly improved code line highlight

- at least the highlight covers all text now
This commit is contained in:
Kim, Jimin 2022-01-15 10:52:51 +09:00
parent 545cf9c857
commit 85e433aa5d

View file

@ -58,7 +58,6 @@ const codeCSS = css`
padding: 0 3px; padding: 0 3px;
} }
/* https://stackoverflow.com/a/48694906/12979111 */
pre > code { pre > code {
font-family: ${theming.font.code}; font-family: ${theming.font.code};
border: ${(props) => border: ${(props) =>
@ -77,6 +76,7 @@ const codeCSS = css`
})}; })};
display: block; display: block;
min-width: min-content;
margin: 0 -1rem; margin: 0 -1rem;
padding: 0 1rem; padding: 0 1rem;
} }