Skip to content

Commit

Permalink
Use scrollbar-gutter
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Nov 20, 2024
1 parent cf701a1 commit 64772b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion source/css/_common/scaffolding/base.styl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ body {
}

if (hexo-config('body_scrollbar.stable')) {
overflow-y: scroll;
scrollbar-gutter: stable;
}
}

Expand Down

0 comments on commit 64772b0

Please sign in to comment.