From de765296ef3ea5a1c1780566c010e2f0746c9eb6 Mon Sep 17 00:00:00 2001 From: Kia King Ishii Date: Tue, 31 May 2022 01:42:39 +0900 Subject: [PATCH] fix: code block missing right padding on x-scroll --- src/client/theme-default/styles/components/vp-doc.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client/theme-default/styles/components/vp-doc.css b/src/client/theme-default/styles/components/vp-doc.css index 92e10544..72d6bef7 100644 --- a/src/client/theme-default/styles/components/vp-doc.css +++ b/src/client/theme-default/styles/components/vp-doc.css @@ -304,14 +304,15 @@ position: relative; z-index: 1; margin: 0; - padding: 16px 24px; + padding: 16px 0; background: transparent; overflow-x: auto; } .vp-doc [class*='language-'] code { display: block; - padding: 0; + padding: 0 24px; + width: fit-content; line-height: var(--vp-code-line-height); font-size: var(--vp-code-font-size); color: var(--vp-code-block-color);