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
14fb5a9b
"src/sdk/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "e7fccfb4a01285795c7a68ea233af119e0fd5a3c"
Commit
14fb5a9b
authored
Nov 21, 2023
by
Timothy J. Baek
Browse files
fix: sidebar open by default
parent
e394d702
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/lib/components/layout/Sidebar.svelte
src/lib/components/layout/Sidebar.svelte
+5
-1
No files found.
src/lib/components/layout/Sidebar.svelte
View file @
14fb5a9b
...
@@ -28,6 +28,10 @@
...
@@ -28,6 +28,10 @@
}
}
onMount(async () => {
onMount(async () => {
if (window.innerWidth > 1280) {
show = true;
}
await chats.set(await $db.getAllFromIndex('chats', 'timestamp'));
await chats.set(await $db.getAllFromIndex('chats', 'timestamp'));
});
});
...
@@ -166,7 +170,7 @@
...
@@ -166,7 +170,7 @@
bind:this={navElement}
bind:this={navElement}
class="h-screen {show
class="h-screen {show
? ''
? ''
: '-translate-x-[260px]'} w-[260px] fixed top-0 left-0 z-40 transition bg-[#0a0a0a] text-gray-200 shadow-2xl text-sm
: '-translate-x-[260px]'}
w-[260px] fixed top-0 left-0 z-40 transition bg-[#0a0a0a] text-gray-200 shadow-2xl text-sm
"
"
>
>
<div class="py-2.5 my-auto flex flex-col justify-between h-screen">
<div class="py-2.5 my-auto flex flex-col justify-between h-screen">
...
...
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