Skip to content
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

chore: fix broken scrolling #1085

Merged
merged 4 commits into from
Sep 11, 2023
Merged

chore: fix broken scrolling #1085

merged 4 commits into from
Sep 11, 2023

Conversation

alessbell
Copy link
Member

When introducing the resizable sidebar, scrolling broke. Fixed and tested in Chrome and FF.

CleanShot 2023-09-11 at 12 25 44
CleanShot 2023-09-11 at 12 26 58

@@ -8,6 +8,9 @@
body {
overflow: hidden;
}
::-webkit-scrollbar {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In dark mode, overflow: scroll means white bars in the reserved space for the scroll bars (in FireFox, it respects the mode the browser is in which is visually much nicer as you can see in the screenshot).

It's possible to style the webkit scroll bar, but the APIs between webkit/non-webkit browsers are different. Hiding the scrollbar in webkit browsers is the past of least CSS for now.

@alessbell alessbell merged commit 61540a8 into main Sep 11, 2023
4 checks passed
@github-actions github-actions bot mentioned this pull request Sep 11, 2023
@alessbell alessbell deleted the scrolling-bug branch September 11, 2023 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant