diff --git a/ka-note/client/src/routes/+layout.svelte b/ka-note/client/src/routes/+layout.svelte index 8f8233b..543fedc 100644 --- a/ka-note/client/src/routes/+layout.svelte +++ b/ka-note/client/src/routes/+layout.svelte @@ -71,6 +71,18 @@ function closeSidebar() { sidebarOpen = false; } + + $effect(() => { + if (sidebarOpen) { + document.body.style.overflow = 'hidden'; + document.body.style.position = 'fixed'; + document.body.style.width = '100%'; + } else { + document.body.style.overflow = ''; + document.body.style.position = ''; + document.body.style.width = ''; + } + }); {#if !authReady} @@ -97,6 +109,7 @@ {/if} diff --git a/ka-note/server/ka-note.db-shm b/ka-note/server/ka-note.db-shm index 9976c98..1a6134a 100644 Binary files a/ka-note/server/ka-note.db-shm and b/ka-note/server/ka-note.db-shm differ diff --git a/ka-note/server/ka-note.db-wal b/ka-note/server/ka-note.db-wal index b1df714..55edbb7 100644 Binary files a/ka-note/server/ka-note.db-wal and b/ka-note/server/ka-note.db-wal differ