From 99032f219b69bc92a61df6049db83d526d132192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=98=89=E4=BC=9F?= <8473136@qq.com> Date: Tue, 3 Mar 2026 11:32:14 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Fix=20Layout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/src/layouts/MainLayout.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);