From 6e32bf302a1de62cb108059500378801992f40cf Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Thu, 9 Jul 2026 19:11:53 +1000 Subject: [PATCH] chore: hide scrollbars on mobile devices for better user experience --- overlay/src/index.css | 50 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/overlay/src/index.css b/overlay/src/index.css index 8a1b86b..fe1a70b 100644 --- a/overlay/src/index.css +++ b/overlay/src/index.css @@ -521,3 +521,53 @@ html.android-capacitor body { word-spacing: normal; font-variant-ligatures: normal; } + +/* Mobile: hide all scrollbars (touch scrolling still works) */ +@media (max-width: 750px) { + *, + *::before, + *::after { + scrollbar-width: none; + -ms-overflow-style: none; + } + + *::-webkit-scrollbar, + *::-webkit-scrollbar-thumb, + *::-webkit-scrollbar-track, + *::-webkit-scrollbar-corner { + display: none; + width: 0; + height: 0; + background: transparent; + } + + .twilight-theme ::-webkit-scrollbar, + .twilight-theme ::-webkit-scrollbar-thumb, + .twilight-theme ::-webkit-scrollbar-track, + .mocha-theme ::-webkit-scrollbar, + .mocha-theme ::-webkit-scrollbar-thumb, + .mocha-theme ::-webkit-scrollbar-track { + display: none; + width: 0; + height: 0; + background: transparent; + } +} + +html.android-capacitor, +html.android-capacitor *, +html.android-capacitor *::before, +html.android-capacitor *::after { + scrollbar-width: none; + -ms-overflow-style: none; +} + +html.android-capacitor *::-webkit-scrollbar, +html.android-capacitor *::-webkit-scrollbar-thumb, +html.android-capacitor *::-webkit-scrollbar-track, +html.android-capacitor *::-webkit-scrollbar-corner { + display: none; + width: 0; + height: 0; + background: transparent; +}