From 85e433aa5ddc582e6d364cc41dbe52f2ecfd0f2c Mon Sep 17 00:00:00 2001 From: developomp Date: Sat, 15 Jan 2022 10:52:51 +0900 Subject: [PATCH] slightly improved code line highlight - at least the highlight covers all text now --- source/src/styles/globalStyle.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/styles/globalStyle.tsx b/source/src/styles/globalStyle.tsx index 407e26e..3136aa2 100644 --- a/source/src/styles/globalStyle.tsx +++ b/source/src/styles/globalStyle.tsx @@ -58,7 +58,6 @@ const codeCSS = css` padding: 0 3px; } - /* https://stackoverflow.com/a/48694906/12979111 */ pre > code { font-family: ${theming.font.code}; border: ${(props) => @@ -77,6 +76,7 @@ const codeCSS = css` })}; display: block; + min-width: min-content; margin: 0 -1rem; padding: 0 1rem; }