Skip to content

Commit

Permalink
Fix minor layout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
spaaaacccee committed May 20, 2024
1 parent c8c491e commit 914668b
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
CssBaseline,
Stack,
ThemeProvider,
useTheme,
} from "@mui/material";
import Root from "@theme/Root";
import { map } from "lodash";
Expand Down Expand Up @@ -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 (
<>
<Box
Expand Down Expand Up @@ -141,7 +133,12 @@ function Content() {
}

function ContentWithTheme() {
const { palette } = useTheme();
useTitleBar();
useEffect(() => {
document.body.style.backgroundColor = palette.background.default;
document.body.style.color = palette.text.primary;
}, [palette.background.default, palette.text.primary]);
return (
<CssBaseline>
<Content />
Expand Down

0 comments on commit 914668b

Please sign in to comment.