fix(webui): give Safari a shared viewport and clipboard foundation
Safari 17+ needs dynamic viewport units, a 16px field floor, and clipboard helpers that still work on LAN HTTP.
This commit is contained in:
8 files changed
+171
-44
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { useEffect, useState } from 'react';
|
||||
import { FINE_POINTER_QUERY } from '@/lib/utils';
|
||||
|
||||
export function useMediaQuery(query: string): boolean {
|
||||
const [matches, setMatches] = useState(() => {
|
||||
@@ -16,3 +17,7 @@ export function useMediaQuery(query: string): boolean {
|
||||
|
||||
return matches;
|
||||
}
|
||||
|
||||
export function useFinePointer(): boolean {
|
||||
return useMediaQuery(FINE_POINTER_QUERY);
|
||||
}
|
||||
Reference in new issue
Block a user