Skip to content

armgit / Handy

Public Imported from GitHub
0

A free, open source, and extensible speech-to-text application that works completely offline.

fix: scrollbars styling on macOS when using a non-Apple mouse (#2048)

Nahian330b2ddbed3d
diff --git a/src/App.css b/src/App.css
index f8fe84e0..bbc8a9b5 100644
--- a/src/App.css
+++ b/src/App.css
@@ -65,18 +65,15 @@
:root[data-platform="macos"] {
scrollbar-color: var(--scrollbar-thumb) transparent;
}
-
-/* Custom Scrollbar - only on Windows/Linux; macOS uses native overlay scrollbars */
-:root:not([data-platform="macos"]) ::-webkit-scrollbar {
+/* Custom Scrollbar */
+::-webkit-scrollbar {
width: 14px;
height: 14px;
}
-
-:root:not([data-platform="macos"]) ::-webkit-scrollbar-track {
+::-webkit-scrollbar-track {
background: transparent;
}
-
-:root:not([data-platform="macos"]) ::-webkit-scrollbar-thumb {
+::-webkit-scrollbar-thumb {
background-color: var(--scrollbar-thumb);
border-radius: 20px;
border: 3px solid transparent;
@@ -85,8 +82,7 @@
background-clip: content-box;
min-height: 32px;
}
-
-:root:not([data-platform="macos"]) ::-webkit-scrollbar-thumb:hover {
+::-webkit-scrollbar-thumb:hover {
background-color: var(--scrollbar-thumb-hover);
}