From 7a8ece15877f173859d40a7a8eb5eeab3bdcec52 Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 30 Sep 2024 14:27:50 +0100 Subject: [PATCH] improve mobile support --- src/hooks/use-is-mobile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/use-is-mobile.ts b/src/hooks/use-is-mobile.ts index dfb843b..5dcfe0a 100644 --- a/src/hooks/use-is-mobile.ts +++ b/src/hooks/use-is-mobile.ts @@ -2,7 +2,7 @@ import { useEffect, useState } from "react"; export function useIsMobile() { const checkMobile = () => { - return window.innerWidth < 1536; + return window.innerWidth < 768; }; const [isMobile, setIsMobile] = useState(checkMobile());