Use scrollbar-gutter

This commit is contained in:
Mimi 2024-11-20 10:06:25 +08:00
parent cf701a13f1
commit 64772b0dec
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -27,7 +27,7 @@ body {
}
if (hexo-config('body_scrollbar.stable')) {
overflow-y: scroll;
scrollbar-gutter: stable;
}
}