mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 11:23:10 +02:00
fileshare (#5414)
Co-authored-by: ConnorYoh <[email protected]> Co-authored-by: Connor Yoh <[email protected]> Co-authored-by: EthanHealy01 <[email protected]> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
ConnorYoh
Connor Yoh
EthanHealy01
Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
parent
47cad0a131
commit
28613caf8a
@@ -7,3 +7,11 @@ import { useMediaQuery } from '@mantine/hooks';
|
||||
export const useIsMobile = (): boolean => {
|
||||
return useMediaQuery('(max-width: 1024px)') ?? false;
|
||||
};
|
||||
|
||||
/**
|
||||
* Custom hook to detect phone-sized viewport (≤768px)
|
||||
* Use for layouts that need a more compact single-column arrangement
|
||||
*/
|
||||
export const useIsPhone = (): boolean => {
|
||||
return useMediaQuery('(max-width: 768px)') ?? false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user