mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 06:37:18 +01:00
add improved truncation between tablets and phones
Some checks failed
Node.js CI / build (postgresql, 18.18, 10) (push) Has been cancelled
Some checks failed
Node.js CI / build (postgresql, 18.18, 10) (push) Has been cancelled
This commit is contained in:
parent
74972bccb1
commit
6eefb4173c
2 changed files with 4 additions and 3 deletions
|
|
@ -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 };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue