"test/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "64e8b686f600907f5fba0c1e385f48ee7a0bcab6"
Commit 4a1e506a authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: input autofocus on mobile issue

parent 47a05a47
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
let isEditing = false; let isEditing = false;
onMount(async () => { onMount(async () => {
if (window.innerWidth > 1280) { if (window.innerWidth > 1024) {
show = true; show = true;
} }
await chats.set(await getChatList(localStorage.token)); await chats.set(await getChatList(localStorage.token));
...@@ -383,6 +383,11 @@ ...@@ -383,6 +383,11 @@
? 'bg-gray-900' ? 'bg-gray-900'
: ''} transition whitespace-nowrap text-ellipsis" : ''} transition whitespace-nowrap text-ellipsis"
href="/c/{chat.id}" href="/c/{chat.id}"
on:click={() => {
if (window.innerWidth < 1024) {
show = false;
}
}}
> >
<div class=" flex self-center flex-1 w-full"> <div class=" flex self-center flex-1 w-full">
<div <div
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment