From 4d549e32ba2433fc95cf8b459db53e7fb9f3053b Mon Sep 17 00:00:00 2001 From: Michael Freno Date: Sun, 21 Dec 2025 23:54:35 -0500 Subject: [PATCH] just show it --- src/app.tsx | 2 +- src/context/bars.tsx | 12 +----------- src/routes/index.tsx | 2 +- 3 files changed, 3 insertions(+), 13 deletions(-) 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