Skip to content

Commit dafddc3

Browse files
committed
Fix layout shift for scrollbars appearing/disapparing
1 parent 4fa53d7 commit dafddc3

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

dist/assets/stylesheets/classic/main.2651815e.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assets/stylesheets/classic/main.346a6e83.min.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
{% if config.theme.variant == "modern" %}
5050
{% set href = 'assets/stylesheets/modern/main.eafc6f7f.min.css' | url %}
5151
{% else %}
52-
{% set href = 'assets/stylesheets/classic/main.346a6e83.min.css' | url %}
52+
{% set href = 'assets/stylesheets/classic/main.2651815e.min.css' | url %}
5353
{% endif %}
5454
<link rel="stylesheet" href="{{ href }}">
5555
{% if config.theme.palette %}

src/assets/stylesheets/classic/main/components/_base.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ html {
3636
// `font-size` of `12px` if the system language is set to Chinese. For this
3737
// reason we just double the `font-size` and set it to `20px`.
3838
font-size: 125%;
39+
// Ensure that there's always enough space for scrollbars to avoid layout
40+
// shifts without affecting operating systems that use overlay scrollbars
41+
scrollbar-gutter: stable;
3942

4043
// [screen medium +]: Set base `font-size` to `11px`
4144
@include break-from-device(screen medium) {

0 commit comments

Comments
 (0)