Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
4a1e506a
"test/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "64e8b686f600907f5fba0c1e385f48ee7a0bcab6"
Commit
4a1e506a
authored
Mar 02, 2024
by
Timothy J. Baek
Browse files
fix: input autofocus on mobile issue
parent
47a05a47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/lib/components/layout/Sidebar.svelte
src/lib/components/layout/Sidebar.svelte
+6
-1
No files found.
src/lib/components/layout/Sidebar.svelte
View file @
4a1e506a
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
let isEditing = false;
let isEditing = false;
onMount(async () => {
onMount(async () => {
if (window.innerWidth > 1
280
) {
if (window.innerWidth > 1
024
) {
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment