fix: code block missing right padding on x-scroll

pull/687/head
Kia King Ishii 3 years ago
parent 2332968e0f
commit de765296ef

@ -304,14 +304,15 @@
position: relative; position: relative;
z-index: 1; z-index: 1;
margin: 0; margin: 0;
padding: 16px 24px; padding: 16px 0;
background: transparent; background: transparent;
overflow-x: auto; overflow-x: auto;
} }
.vp-doc [class*='language-'] code { .vp-doc [class*='language-'] code {
display: block; display: block;
padding: 0; padding: 0 24px;
width: fit-content;
line-height: var(--vp-code-line-height); line-height: var(--vp-code-line-height);
font-size: var(--vp-code-font-size); font-size: var(--vp-code-font-size);
color: var(--vp-code-block-color); color: var(--vp-code-block-color);

Loading…
Cancel
Save