fix: add drop zone placeholder for empty sidebar categories
Deploy Dashboard (Dev) / deploy-dev (push) Successful in 2m27s
Deploy Dashboard (Dev) / deploy-dev (push) Successful in 2m27s
This commit is contained in:
@@ -273,6 +273,16 @@
|
||||
{/if}
|
||||
</button>
|
||||
{#if cat === "main" || !collapsed[cat]}
|
||||
{#if items.length === 0}
|
||||
<div
|
||||
class="px-3 py-3 mx-1 rounded-lg border border-dashed text-[11px] text-center transition-colors duration-150
|
||||
{dropCategory === cat ? 'border-primary-400 bg-primary-50 dark:bg-primary-900/20 text-primary-500' : 'border-surface-300 dark:border-surface-600 text-surface-400'}"
|
||||
ondragover={(e) => handleCategoryDragOver(cat, e)}
|
||||
ondrop={(e) => handleCategoryDrop(cat, e)}
|
||||
>
|
||||
Drop items here
|
||||
</div>
|
||||
{/if}
|
||||
{#each items as item, i}
|
||||
{#if canAccess(item.id)}
|
||||
{#if item.external || item.remoteHref || item.port}
|
||||
|
||||
Reference in New Issue
Block a user