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:
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;
|
||||
}
|
||||
Reference in new issue
Block a user