From bda49ccdb67546b2c7e81477f77129efa7d1cf9b Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Sun, 26 Jul 2026 18:47:12 -0400 Subject: [PATCH] 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. --- src/lib/components/layout/Sidebar/UserMenu.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/components/layout/Sidebar/UserMenu.svelte b/src/lib/components/layout/Sidebar/UserMenu.svelte index 8bd3d824a6..0c126328aa 100644 --- a/src/lib/components/layout/Sidebar/UserMenu.svelte +++ b/src/lib/components/layout/Sidebar/UserMenu.svelte @@ -337,6 +337,10 @@ e.preventDefault(); show = false; goto('/calendar'); + if ($mobile) { + await tick(); + showSidebar.set(false); + } }} >