From 619fb3ad45405c061d7fa82aa2795d41b99384af Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Thu, 11 Jul 2024 09:09:52 +0800 Subject: [PATCH] Default to no show menu under 1000px --- packages/web/pages/l/[section].tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web/pages/l/[section].tsx b/packages/web/pages/l/[section].tsx index 9a0b96807..43c8187c0 100644 --- a/packages/web/pages/l/[section].tsx +++ b/packages/web/pages/l/[section].tsx @@ -19,9 +19,9 @@ export default function Home(): JSX.Element { usePersistedState({ key: 'nav-show-menu', isSessionStorage: false, - initialValue: true, + initialValue: false, defaultEvaluator: () => { - return !isTouchScreenDevice() + return window.innerWidth > 1000 }, })