fix: mobile tags pills show all active tags regardless of item count

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Yusuf Suleman
2026-04-01 22:42:56 -05:00
parent 9f51f3bcd3
commit 2ab27d048a
2 changed files with 49 additions and 18 deletions

View File

@@ -452,10 +452,9 @@
</button>
{/each}
<span class="pill-separator"></span>
{#each sidebarTags.filter(t => t.is_active && t.item_count > 0) as tag}
{#each sidebarTags.filter(t => t.is_active) as tag}
<button class="pill pill-tag" class:active={activeTag === tag.name} onclick={() => { activeTag = tag.name; activeTagId = tag.id; activeFolder = null; activeFolderId = null; loadItems(); }}>
#{tag.name}
<span class="pill-count">{tag.item_count}</span>
</button>
{/each}
</div>