Skip to content

Commit 3296cdf

Browse files
committed
Fixed sidebar on Firefox mobile
1 parent 502ef2f commit 3296cdf

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

material/templates/assets/stylesheets/main.4af4bdda.min.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/templates/assets/stylesheets/main.8608ea7d.min.css.map renamed to material/templates/assets/stylesheets/main.4af4bdda.min.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/templates/assets/stylesheets/main.8608ea7d.min.css

-1
This file was deleted.

material/templates/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
{% endif %}
4545
{% endblock %}
4646
{% block styles %}
47-
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.8608ea7d.min.css' | url }}">
47+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.4af4bdda.min.css' | url }}">
4848
{% if config.theme.palette %}
4949
{% set palette = config.theme.palette %}
5050
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.06af60db.min.css' | url }}">

src/templates/assets/stylesheets/main/components/_sidebar.scss

+10-6
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,19 @@
124124
margin: 0 px2rem(4px);
125125
overflow-y: auto;
126126
scrollbar-color: var(--md-default-fg-color--lighter) transparent;
127-
scrollbar-gutter: stable;
128-
// Hack: Chrome 81+ exhibits a strange bug, where it scrolls the container
129-
// to the bottom if `scroll-snap-type` is set on the initial render. For
130-
// this reason, we disable scroll snapping until this is resolved (#1667).
131-
// scroll-snap-type: y mandatory;
132-
scrollbar-width: thin;
133127
// Hack: promote to own layer to reduce jitter
134128
backface-visibility: hidden;
135129

130+
// [tablet landscape +]: Show sidebars
131+
@include break-from-device(tablet landscape) {
132+
scrollbar-gutter: stable;
133+
// Hack: Chrome 81+ exhibits a strange bug, where it scrolls the container
134+
// to the bottom if `scroll-snap-type` is set on the initial render. For
135+
// this reason, we disable scroll snapping until this is resolved (#1667).
136+
// scroll-snap-type: y mandatory;
137+
scrollbar-width: thin;
138+
}
139+
136140
// Webkit scrollbar
137141
&::-webkit-scrollbar {
138142
width: px2rem(4px);

0 commit comments

Comments
 (0)