add improved truncation between tablets and phones

This commit is contained in:
Francis Cao committed 2025-10-27 13:54:15 -07:00
1 parent 74972bccb1
commit 6eefb4173c
2 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -3,6 +3,7 @@ import { useBreakpoint } from '@umami/react-zen';
export function useMobile() {
const breakpoint = useBreakpoint();
const isMobile = ['xs', 'sm', 'md'].includes(breakpoint);
const isPhone = ['xs', 'sm'].includes(breakpoint);
return { breakpoint, isMobile };
return { breakpoint, isMobile, isPhone };
}