diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index 5e83467d6..9bd4f0e16 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -325,7 +325,10 @@ on:click={() => { selectedChatId = null; chatId.set(''); - showSidebar.set(!$showSidebar); + + if ($mobile) { + showSidebar.set(false); + } }} draggable="false" >