diff --git a/src/lib/components/Sidebar.svelte b/src/lib/components/Sidebar.svelte index a300bd0..075d3c2 100644 --- a/src/lib/components/Sidebar.svelte +++ b/src/lib/components/Sidebar.svelte @@ -800,12 +800,12 @@ class:active={$viewMode === 'notebook' && $activeNotebook?.relative_path === ''} onclick={selectUnfiled} > - - - - - - Unfiled Notes {$rootNoteCount} + + + + + + Unfiled Notes {$rootNoteCount} {/if} {#each sortedNotebooks as nb (nb.path)} @@ -942,7 +942,7 @@ {@const isCollapsed = $collapsedNotebooks.includes(nb.path)} {@const iconSrc = getNotebookIconSrc(nb)} {#if editingNotebook === nb.path} -
+
selectNotebook(nb)} onkeydown={(e) => { @@ -1028,13 +1028,20 @@ {:else} {/if} - {#if iconSrc} - - {:else} - - - - {/if} + {#if iconSrc} + + {:else if isCollapsed || nb.children.length === 0} + + + + + {:else} + + + + + + {/if} {nb.name} {nb.note_count} {#if $notebookSortMode === 'manual'} @@ -1295,7 +1302,7 @@ align-items: center; gap: 6px; width: 100%; - padding: 5px 8px; + padding: 5px 8px 5px 0; border: none; background: none; border-radius: 6px;