diff --git a/src/app.tsx b/src/app.tsx index a8bd9ed..fbcfcbf 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -190,7 +190,7 @@ function AppLayout(props: { children: any }) {
{}, centerWidth: () => 0, setCenterWidth: () => {}, - leftBarVisible: () => - typeof window !== "undefined" ? window.innerWidth >= 768 : true, + leftBarVisible: () => true, setLeftBarVisible: () => {}, rightBarVisible: () => true, setRightBarVisible: () => {}, @@ -59,16 +58,7 @@ export function BarsProvider(props: { children: any }) { onMount(() => { // Immediately sync to actual window width setWindowWidth(window.innerWidth); - const initialIsMobile = isMobile(window.innerWidth); - setLeftBarVisible(!initialIsMobile); - // Initialize immediately on mobile if left bar starts hidden - if (initialIsMobile && !leftBarVisible()) { - leftBarSized = true; - checkAndSync(); - } - - // Setup resize listener const handleResize = () => { setWindowWidth(window.innerWidth); }; diff --git a/src/routes/index.tsx b/src/routes/index.tsx index 86be9f2..630d2cd 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -148,7 +148,7 @@ export default function Home() {
- + And if you love the color schemes of this site