From 4e2ef9c6bfb7aa015ac55f8ee6ce631ea11754db Mon Sep 17 00:00:00 2001 From: "Gan, Jimmy" Date: Sun, 1 Mar 2026 16:21:28 +0800 Subject: [PATCH] fix: add drop zone placeholder for empty sidebar categories --- dashboard/frontend/src/components/Sidebar.svelte | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dashboard/frontend/src/components/Sidebar.svelte b/dashboard/frontend/src/components/Sidebar.svelte index d35f29c..70eeded 100644 --- a/dashboard/frontend/src/components/Sidebar.svelte +++ b/dashboard/frontend/src/components/Sidebar.svelte @@ -273,6 +273,16 @@ {/if} {#if cat === "main" || !collapsed[cat]} + {#if items.length === 0} +
handleCategoryDragOver(cat, e)} + ondrop={(e) => handleCategoryDrop(cat, e)} + > + Drop items here +
+ {/if} {#each items as item, i} {#if canAccess(item.id)} {#if item.external || item.remoteHref || item.port}