浏览代码

fix: sidebar

Timothy J. Baek 11 月之前
父节点
当前提交
d4b10097d2
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/lib/components/layout/Sidebar.svelte

+ 4 - 1
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"
 				>