From 914668b28520c7cc99d339ab8b028f07ca90cbdc Mon Sep 17 00:00:00 2001 From: spaaaacccee Date: Mon, 20 May 2024 21:51:39 +1000 Subject: [PATCH] Fix minor layout issue --- src/pages/index.tsx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 2f94082..a8bdbb3 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -5,6 +5,7 @@ import { CssBaseline, Stack, ThemeProvider, + useTheme, } from "@mui/material"; import Root from "@theme/Root"; import { map } from "lodash"; @@ -32,15 +33,6 @@ function Content() { const sm = useSm(); const [mode] = useMode(); - // useEffect(() => { - // const sb = OverlayScrollbars(document.body, { - // overflow: { x: "hidden", y: "scroll" }, - // scrollbars: { - // // theme: mode === "dark" ? "os-theme-light" : undefined, - // }, - // }); - // () => sb.destroy(); - // }, [mode]); return ( <> { + document.body.style.backgroundColor = palette.background.default; + document.body.style.color = palette.text.primary; + }, [palette.background.default, palette.text.primary]); return (