Skip to content

armgit / umami

Public Imported from GitHub
0

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.

Hide sidebar collapse button on mobile

Mike Caob43e7fd3a7f9
diff --git a/src/app/share/[slug]/[[...path]]/ShareNav.tsx b/src/app/share/[slug]/[[...path]]/ShareNav.tsx
index f4eade5e2..c5989f28e 100644
--- a/src/app/share/[slug]/[[...path]]/ShareNav.tsx
+++ b/src/app/share/[slug]/[[...path]]/ShareNav.tsx
@@ -162,11 +162,13 @@ export function ShareNav({
</Row>
</a>
)}
- <Button variant="quiet" onPress={() => onCollapse?.(!collapsed)}>
- <Icon color="muted">
- <PanelLeft />
- </Icon>
- </Button>
+ {!onItemClick && (
+ <Button variant="quiet" onPress={() => onCollapse?.(!collapsed)}>
+ <Icon color="muted">
+ <PanelLeft />
+ </Icon>
+ </Button>
+ )}
</Row>
{!collapsed && (
<Column flexGrow={1} overflowY="auto">