Browse Source

fix: sidebar

Timothy J. Baek 11 tháng trước cách đây
mục cha
commit
d4b10097d2
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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"
 				>