diff --git a/src/lib/components/NoteList.svelte b/src/lib/components/NoteList.svelte index 69ffa7f..9d05d0d 100644 --- a/src/lib/components/NoteList.svelte +++ b/src/lib/components/NoteList.svelte @@ -449,6 +449,14 @@ } } + function handleListDoubleClick(e: MouseEvent) { + const target = e.target as HTMLElement | null; + if (target?.closest('button, input, .note-item, .context-menu, .sort-menu, .batch-move-picker, .cal')) return; + e.stopPropagation(); + if ($viewMode === 'tasks' || $viewMode === 'trash') return; + handleCreateNote(); + } + async function handleRename(note: NoteEntry) { if (!editValue.trim() || editValue.trim() === note.meta.title) { editingNote = null; @@ -1079,7 +1087,8 @@ {/if} -
+ +
{#if $viewMode === 'tasks'} {/if} diff --git a/src/lib/components/Sidebar.svelte b/src/lib/components/Sidebar.svelte index a1acd62..a300bd0 100644 --- a/src/lib/components/Sidebar.svelte +++ b/src/lib/components/Sidebar.svelte @@ -636,7 +636,7 @@ -