mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Hide sidebar collapse button on mobile
onItemClick is only passed on mobile, so use it to detect mobile context Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
5880eae4e4
commit
b43e7fd3a7
1 changed files with 7 additions and 5 deletions
|
|
@ -162,11 +162,13 @@ export function ShareNav({
|
||||||
</Row>
|
</Row>
|
||||||
</a>
|
</a>
|
||||||
)}
|
)}
|
||||||
<Button variant="quiet" onPress={() => onCollapse?.(!collapsed)}>
|
{!onItemClick && (
|
||||||
<Icon color="muted">
|
<Button variant="quiet" onPress={() => onCollapse?.(!collapsed)}>
|
||||||
<PanelLeft />
|
<Icon color="muted">
|
||||||
</Icon>
|
<PanelLeft />
|
||||||
</Button>
|
</Icon>
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
</Row>
|
</Row>
|
||||||
{!collapsed && (
|
{!collapsed && (
|
||||||
<Column flexGrow={1} overflowY="auto">
|
<Column flexGrow={1} overflowY="auto">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue