Skip to content

Commit

Permalink
fix(ui): scrollbars size
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Feb 8, 2024
1 parent 3e632db commit ff5875d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@
-webkit-border-radius: 1ex;
}

/*
In Chrome 121, support was added for scrollbar-color and scrollbar-width. If some of these properties are used, then ::-webkit-scrollbar won't work.
https://syntackle.com/blog/changes-to-scrollbar-styling-in-chrome-121/
*/
@supports not selector(::-webkit-scrollbar) {
html {
scrollbar-width: thin;
scrollbar-color: rgba(0, 0, 0, 0.233);
}
}

/* Hacky hack. Remove scrollbars for 320 width screens */
@media screen and (max-width: 320px) {
body::-webkit-scrollbar {
Expand Down

0 comments on commit ff5875d

Please sign in to comment.