From 64772b0decea8524c92e0f7c0a49440c75acf79c Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Wed, 20 Nov 2024 10:06:25 +0800 Subject: [PATCH] Use scrollbar-gutter --- _config.yml | 2 +- source/css/_common/scaffolding/base.styl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_config.yml b/_config.yml index 34809c6..e6ebedc 100644 --- a/_config.yml +++ b/_config.yml @@ -358,7 +358,7 @@ theme_color: body_scrollbar: # Place the scrollbar over the content. overlay: false - # Present the scrollbar even if the content is not overflowing. + # Reserving space for the scrollbar gutter even if the content is not overflowing. stable: false codeblock: diff --git a/source/css/_common/scaffolding/base.styl b/source/css/_common/scaffolding/base.styl index e4cc1b1..b757841 100644 --- a/source/css/_common/scaffolding/base.styl +++ b/source/css/_common/scaffolding/base.styl @@ -27,7 +27,7 @@ body { } if (hexo-config('body_scrollbar.stable')) { - overflow-y: scroll; + scrollbar-gutter: stable; } }