From c5b2767ad872186a8ef69074019ee148df7958c2 Mon Sep 17 00:00:00 2001 From: jake Date: Mon, 16 Mar 2026 23:33:54 +0000 Subject: [PATCH] fix(kon): task sidebar overlay click handling - Backdrop tint div has direct onclick to close sidebar - Sidebar panel uses stopPropagation so clicks inside don't close - Outer container uses target check for self-click dismiss - Svelte 5 compatible (no |self modifier) Co-Authored-By: Claude Opus 4.6 (1M context) --- src/routes/+layout.svelte | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 68a50cd..762cf84 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -125,15 +125,25 @@ {#if page.taskSidebarOpen && page.current !== "first-run" && !isSecondaryWindow} - - - -
- + + +
{ if (e.target === e.currentTarget) page.taskSidebarOpen = false; }} + > + + +
{ page.taskSidebarOpen = false; }} + >
+ +
e.stopPropagation()} + > + +
{/if} {/if}