From 0fdf88e256979135474f33853fc937ecc17476be Mon Sep 17 00:00:00 2001 From: holybasil Date: Tue, 8 Aug 2023 16:26:35 +0800 Subject: [PATCH] fix: fixed sidebar --- src/layouts/MainLayout.astro | 1 + src/styles/prism-darcula.css | 1 + 2 files changed, 2 insertions(+) diff --git a/src/layouts/MainLayout.astro b/src/layouts/MainLayout.astro index e69da75ff..9ccc7327f 100644 --- a/src/layouts/MainLayout.astro +++ b/src/layouts/MainLayout.astro @@ -98,6 +98,7 @@ changeLanguage(content.lang) display: flex; flex-direction: column; height: 100%; + overflow: auto; } #grid-right { diff --git a/src/styles/prism-darcula.css b/src/styles/prism-darcula.css index a89fb2aa8..c70ebbc24 100644 --- a/src/styles/prism-darcula.css +++ b/src/styles/prism-darcula.css @@ -66,6 +66,7 @@ pre[class*="language-"] { background: #2b2b2b; border-radius: 27px; padding: 17px; + padding-right: 70px; } /* Inline code */