Reveal hidden notes list when selecting a sidebar view (#145)

This commit is contained in:
Yuri Karamian
2026-06-22 12:59:04 +02:00
parent 3d28665e1e
commit 4843bcacd5
+7
View File
@@ -258,7 +258,14 @@
function handleViewChanged() {
taskNoteOpened = false;
// 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';
}