From e8e6f188514bed3e00ce2db966a065d200ac385d Mon Sep 17 00:00:00 2001 From: Youwes09 Date: Sun, 26 Apr 2026 13:58:04 -0500 Subject: [PATCH] Fix: Library-Folder Truncation --- .../library/components/LibraryToolbar.svelte | 64 +++++++++++-------- 1 file changed, 36 insertions(+), 28 deletions(-) diff --git a/src/features/library/components/LibraryToolbar.svelte b/src/features/library/components/LibraryToolbar.svelte index 3ee72de..3cfa23f 100644 --- a/src/features/library/components/LibraryToolbar.svelte +++ b/src/features/library/components/LibraryToolbar.svelte @@ -91,30 +91,35 @@ {counts[f] ?? 0} {/each} - {#each visibleCategories as cat, idx} - {#if dragInsertIdx === idx && activeDragKind === "tab"} - - {/if} - - {#if dragInsertIdx === idx + 1 && activeDragKind === "tab" && idx === visibleCategories.length - 1} - - {/if} - {/each} + {#if visibleCategories.length > 0} + +
+ {#each visibleCategories as cat, idx} + {#if dragInsertIdx === idx && activeDragKind === "tab"} + + {/if} + + {#if dragInsertIdx === idx + 1 && activeDragKind === "tab" && idx === visibleCategories.length - 1} + + {/if} + {/each} +
+ {/if}
@@ -194,12 +199,15 @@