fix(ui): close sidebar on mobile when opening Calendar from user menu (#26979)

Every other navigation entry in the user menu (Settings, Admin Panel,
Archived Chats, Workspace, Notes, Automations, Playground, Sign Out)
collapses the sidebar on mobile after navigating, but the Calendar entry
was missing this handling, leaving the sidebar open over the Calendar
page on mobile. Add the same mobile guard used by the sibling entries.
This commit is contained in:
G30 2026-07-26 18:47:12 -04:00 committed by GitHub
parent b81627b2c9
commit bda49ccdb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -337,6 +337,10 @@
e.preventDefault();
show = false;
goto('/calendar');
if ($mobile) {
await tick();
showSidebar.set(false);
}
}}
>
<div class="self-center">