fix: input autofocus on mobile issue

This commit is contained in:
Timothy J. Baek 2024-03-02 19:05:16 -08:00
parent 47a05a47b4
commit 4a1e506a35

View File

@ -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;
}
}}
>
<div class=" flex self-center flex-1 w-full">
<div