From 4843bcacd5b558f10f5d05cf68093f8eefc57f40 Mon Sep 17 00:00:00 2001 From: Yuri Karamian Date: Mon, 22 Jun 2026 12:59:04 +0200 Subject: [PATCH] Reveal hidden notes list when selecting a sidebar view (#145) --- src/lib/components/AppLayout.svelte | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/lib/components/AppLayout.svelte b/src/lib/components/AppLayout.svelte index 48e4433..1928f32 100644 --- a/src/lib/components/AppLayout.svelte +++ b/src/lib/components/AppLayout.svelte @@ -258,7 +258,14 @@ function handleViewChanged() { taskNoteOpened = false; - noteList?.refresh(); + // Picking a notebook/tag/Tasks/etc. in the sidebar is a request to browse that view's + // notes - so if the notes list was hidden, bring it back rather than navigating blindly + // into a panel the user can't see. revealNoteList() re-mounts the list and refreshes it. + if ($notelistCollapsed) { + revealNoteList(); + } else { + noteList?.refresh(); + } if (isMobile) $mobileView = 'notelist'; }