mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
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:
parent
b81627b2c9
commit
bda49ccdb6
1 changed files with 4 additions and 0 deletions
|
|
@ -337,6 +337,10 @@
|
|||
e.preventDefault();
|
||||
show = false;
|
||||
goto('/calendar');
|
||||
if ($mobile) {
|
||||
await tick();
|
||||
showSidebar.set(false);
|
||||
}
|
||||
}}
|
||||
>
|
||||
<div class="self-center">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue