Skip to content

Commit 81fbcca

Browse files
Fix scrollbars on MacOS (#781)
* Fix scrollbars for mac os * Remove console log statement
1 parent f95d1fd commit 81fbcca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pages/_app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Router.events.on("routeChangeError", () => NProgress.done());
1919

2020
function StreamlitDocs({ Component, pageProps }) {
2121
useEffect(() => {
22-
if (navigator.platform.match("Mac") === null) {
22+
if (navigator.platform.includes("Mac")) {
2323
document.body.classList.add("mac");
2424
}
2525
}, []);

styles/scrollbars.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* Improve scrollbars on Chrome + Windows/Linux. */
2-
:not(.mac) {
2+
body:not(.mac) {
33
::-webkit-scrollbar {
44
height: 6px;
55
width: 6px;

0 commit comments

Comments
 (0)