diff --git a/site/src/layouts/MainLayout.tsx b/site/src/layouts/MainLayout.tsx index 34d1527..0a1459d 100644 --- a/site/src/layouts/MainLayout.tsx +++ b/site/src/layouts/MainLayout.tsx @@ -24,10 +24,10 @@ function useIsMobile() { navigator.userAgent, ); - const [isSmall, setIsSmall] = useState(() => window.matchMedia("(max-width: 639px)").matches); + const [isSmall, setIsSmall] = useState(() => window.matchMedia("(max-width: 760px)").matches); useEffect(() => { - const mq = window.matchMedia("(max-width: 639px)"); + const mq = window.matchMedia("(max-width: 760px)"); const handler = (e: MediaQueryListEvent) => setIsSmall(e.matches); mq.addEventListener("change", handler); return () => mq.removeEventListener("change", handler);