mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 22:27:16 +01:00
Fixes for mobile.
This commit is contained in:
parent
bcafa12349
commit
9a5604f236
11 changed files with 38 additions and 58 deletions
|
|
@ -33,7 +33,7 @@ export function MobileNav() {
|
|||
];
|
||||
|
||||
return (
|
||||
<Grid columns="auto 1fr" flexGrow={1}>
|
||||
<Grid columns="auto 1fr" flexGrow={1} backgroundColor="3" borderRadius>
|
||||
<MobileMenuButton>
|
||||
{({ close }) => {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { Dialog, Modal, useBreakpoint } from '@umami/react-zen';
|
||||
import { Dialog, Modal } from '@umami/react-zen';
|
||||
import { WebsiteExpandedView } from '@/app/(main)/websites/[websiteId]/WebsiteExpandedView';
|
||||
import { useNavigation } from '@/components/hooks';
|
||||
import { useNavigation, useMobile } from '@/components/hooks';
|
||||
|
||||
export function ExpandedViewModal({
|
||||
websiteId,
|
||||
|
|
@ -14,8 +14,7 @@ export function ExpandedViewModal({
|
|||
query: { view },
|
||||
updateParams,
|
||||
} = useNavigation();
|
||||
const breakpoint = useBreakpoint();
|
||||
const isMobile = ['xs', 'sm', 'md'].includes(breakpoint);
|
||||
const { isMobile } = useMobile();
|
||||
|
||||
const handleClose = (close: () => void) => {
|
||||
router.push(updateParams({ view: undefined }));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue