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 authored and GitHub committed 2026-07-26 18:47:12 -04:00
1 parent b81627b2c9
commit bda49ccdb6
1 file changed
+4
@@ -337,6 +337,10 @@
e.preventDefault();
show = false;
goto('/calendar');
if ($mobile) {
await tick();
showSidebar.set(false);
}
}}
>
<div class="self-center">