forked from open-webui/open-webui
fix: input autofocus on mobile issue
This commit is contained in:
parent
47a05a47b4
commit
4a1e506a35
1 changed files with 6 additions and 1 deletions
|
@ -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 @@
|
||||||
? '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
|
||||||
|
|
Loading…
Reference in a new issue