diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index 1061a1ab7..7e02926da 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -35,7 +35,7 @@ let isEditing = false; onMount(async () => { - if (window.innerWidth > 1280) { + if (window.innerWidth > 1024) { show = true; } await chats.set(await getChatList(localStorage.token)); @@ -383,6 +383,11 @@ ? 'bg-gray-900' : ''} transition whitespace-nowrap text-ellipsis" href="/c/{chat.id}" + on:click={() => { + if (window.innerWidth < 1024) { + show = false; + } + }} >