mirror of
https://github.com/faiztyanirh/clqms-shadcn-v1.git
synced 2026-04-22 09:35:34 +07:00
change sidebar default to collapsed
This commit is contained in:
parent
5817f74ace
commit
8529c91058
3
src/routes/+error.svelte
Normal file
3
src/routes/+error.svelte
Normal file
@ -0,0 +1,3 @@
|
||||
<div>
|
||||
eyoy
|
||||
</div>
|
||||
@ -11,15 +11,21 @@
|
||||
import { Button } from "$lib/components/ui/button/index.js";
|
||||
import { Separator } from "$lib/components/ui/separator/index.js";
|
||||
import { Toaster } from "$lib/components/ui/sonner/index.js";
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
let { children, data } = $props();
|
||||
let sidebarOpen = $state(true);
|
||||
|
||||
onMount(() => {
|
||||
sidebarOpen = false;
|
||||
});
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<link rel="icon" href={favicon} />
|
||||
</svelte:head>
|
||||
|
||||
<Sidebar.Provider>
|
||||
<Sidebar.Provider open={sidebarOpen}>
|
||||
<AppSidebar />
|
||||
<Sidebar.Inset class="flex flex-col h-screen overflow-hidden">
|
||||
<header class="flex h-10 shrink-0 items-center justify-between gap-2">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user