feat: update small screen breakpoint to 768px

This commit is contained in:
codytseng
2025-06-28 12:30:38 +08:00
parent 5df33837ab
commit 5d41e31d07
2 changed files with 7 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ export const useScreenSize = () => {
}
export function ScreenSizeProvider({ children }: { children: React.ReactNode }) {
const isSmallScreen = useMemo(() => window.innerWidth < 640, [])
const isSmallScreen = useMemo(() => window.innerWidth <= 768, [])
const isLargeScreen = useMemo(() => window.innerWidth >= 1280, [])
return (