Skip to content

Fixed sidebar on Firefox mobile #8085

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

This file was deleted.

2 changes: 1 addition & 1 deletion material/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.8608ea7d.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.4af4bdda.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.06af60db.min.css' | url }}">
Expand Down
16 changes: 10 additions & 6 deletions src/templates/assets/stylesheets/main/components/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,19 @@
margin: 0 px2rem(4px);
overflow-y: auto;
scrollbar-color: var(--md-default-fg-color--lighter) transparent;
scrollbar-gutter: stable;
// Hack: Chrome 81+ exhibits a strange bug, where it scrolls the container
// to the bottom if `scroll-snap-type` is set on the initial render. For
// this reason, we disable scroll snapping until this is resolved (#1667).
// scroll-snap-type: y mandatory;
scrollbar-width: thin;
// Hack: promote to own layer to reduce jitter
backface-visibility: hidden;

// [tablet landscape +]: Show sidebars
@include break-from-device(tablet landscape) {
scrollbar-gutter: stable;
// Hack: Chrome 81+ exhibits a strange bug, where it scrolls the container
// to the bottom if `scroll-snap-type` is set on the initial render. For
// this reason, we disable scroll snapping until this is resolved (#1667).
// scroll-snap-type: y mandatory;
scrollbar-width: thin;
}

// Webkit scrollbar
&::-webkit-scrollbar {
width: px2rem(4px);
Expand Down