open-webui/src/routes/(app)/notes/[id]/+page.svelte
Timothy Jaeryang Baek b364cf43d3 feat: resizable sidebar
Co-Authored-By: ALiNew <42788336+sukjinkim@users.noreply.github.com>
2025-12-10 23:54:36 -05:00

27 lines
611 B
Svelte

<script lang="ts">
import { onMount } from 'svelte';
import { goto } from '$app/navigation';
import { page } from '$app/stores';
import { showSidebar } from '$lib/stores';
import dayjs from '$lib/dayjs';
import { createNoteHandler } from '$lib/components/notes/utils';
import NoteEditor from '$lib/components/notes/NoteEditor.svelte';
let loaded = false;
onMount(async () => {
loaded = true;
});
</script>
{#if loaded}
<div
id="note-container"
class="w-full h-full {$showSidebar ? 'md:max-w-[calc(100%-var(--sidebar-width))]' : ''}"
>
<NoteEditor id={$page.params.id} />
</div>
{/if}