Default to no show menu under 1000px

This commit is contained in:
Jackson Harper 2024-07-11 09:09:52 +08:00
parent a7e640320c
commit 619fb3ad45

View file

@ -19,9 +19,9 @@ export default function Home(): JSX.Element {
usePersistedState<boolean>({
key: 'nav-show-menu',
isSessionStorage: false,
initialValue: true,
initialValue: false,
defaultEvaluator: () => {
return !isTouchScreenDevice()
return window.innerWidth > 1000
},
})