Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Make ShareNav full width on mobile
Mike Cao489c2712d1d4
diff --git a/src/app/share/[slug]/[[...path]]/ShareNav.tsx b/src/app/share/[slug]/[[...path]]/ShareNav.tsxindex c5989f28e..e6ca38654 100644--- a/src/app/share/[slug]/[[...path]]/ShareNav.tsx+++ b/src/app/share/[slug]/[[...path]]/ShareNav.tsx@@ -137,15 +137,17 @@ export function ShareNav({.flatMap(e => e.items).find(({ path }) => path && pathname.endsWith(path.split('?')[0]))?.id;+ const isMobile = !!onItemClick;+return (<Column- position="fixed"+ position={isMobile ? undefined : 'fixed'}padding="3"- width={collapsed ? '60px' : '240px'}+ width={isMobile ? '100%' : collapsed ? '60px' : '240px'}maxHeight="100vh"height="100vh"- border="right"- borderColor="4"+ border={isMobile ? undefined : 'right'}+ borderColor={isMobile ? undefined : '4'}><Row as="header" gap alignItems="center" paddingY="3" justifyContent="space-between">{!collapsed && (diff --git a/src/components/input/MobileMenuButton.tsx b/src/components/input/MobileMenuButton.tsxindex 5e59cbbbe..8498b05a9 100644--- a/src/components/input/MobileMenuButton.tsx+++ b/src/components/input/MobileMenuButton.tsx@@ -9,8 +9,8 @@ export function MobileMenuButton(props: DialogProps) {<Menu /></Icon></Button>- <Modal placement="left" offset="80px">- <Dialog variant="sheet" {...props} />+ <Modal placement="left">+ <Dialog variant="sheet" {...props} style={{ width: 'auto' }} /></Modal></DialogTrigger>);