mirror of
https://github.com/open-webui/open-webui
synced 2024-11-28 06:53:14 +00:00
fix: sidebar open by default
This commit is contained in:
parent
e394d70206
commit
14fb5a9b5c
@ -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 @@
|
|||||||
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">
|
||||||
|
Loading…
Reference in New Issue
Block a user