Rename SideMenu to NavMenu, fix tooltips, and update react-zen.
- Rename SideMenu to NavMenu with visible group title labels and selected item highlighting - Update react-zen to 0.242.0 and fix responsive breakpoints (xs -> base) - Style floating tooltips with inverted background across WorldMap, charts, and WeeklyTraffic - Add CSS variables for primary color and use IconLabel consistently - Remove stray console.log from LoadingPanel Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
7cafc3e61d
commit
c6dd3fb6ff
36 files changed
+107
-171
No files matched your search
@@ -2,8 +2,8 @@ import { useBreakpoint } from '@umami/react-zen';
|
||||
|
||||
export function useMobile() {
|
||||
const breakpoint = useBreakpoint();
|
||||
const isMobile = ['xs', 'sm', 'md'].includes(breakpoint);
|
||||
const isPhone = ['xs', 'sm'].includes(breakpoint);
|
||||
const isMobile = ['base', 'sm', 'md'].includes(breakpoint);
|
||||
const isPhone = ['base', 'sm'].includes(breakpoint);
|
||||
|
||||
return { breakpoint, isMobile, isPhone };
|
||||
}
|
||||
Reference in new issue
Block a user