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:
DrSmoothl committed 2026-09-19 16:30:11 +08:00
1 parent 555e4be95e
commit 0ef9f9475c
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);
}