fix(webui): hide sidebar pin controls in menu mode

Keep sidebar pinning available in desktop navigation and hide its controls when navigation uses the menu.

Fixes #485
This commit is contained in:
DrSmoothl committed 2026-09-26 15:54:38 +08:00
1 parent 0591b160fb
commit 726fbc6c67
4 files changed
+18 -10

No files matched your search

@@ -21,3 +21,9 @@ export function useMediaQuery(query: string): boolean {
export function useFinePointer(): boolean {
return useMediaQuery(FINE_POINTER_QUERY);
}
export function useDesktopSidebar(): boolean {
const isWide = useMediaQuery('(min-width: 768px)');
const canHover = useFinePointer();
return isWide && canHover;
}