feat: replace showcase tag overlays with ghost count badge, refine nav hint
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -156,14 +156,13 @@
|
||||
}
|
||||
item.appendChild(imgEl);
|
||||
|
||||
// Filter out archive tags from display (they're still visible in modal)
|
||||
const visibleTags = (img.tags || []).filter(t => t.kind !== 'archive');
|
||||
// Filter out archive and source tags from display (they're still visible in modal)
|
||||
const visibleTags = (img.tags || []).filter(t => t.kind !== 'archive' && t.kind !== 'source');
|
||||
if (visibleTags.length > 0) {
|
||||
const overlay = document.createElement('div');
|
||||
overlay.className = 'tag-overlay';
|
||||
// Use shared utility to create tag chips
|
||||
overlay.innerHTML = visibleTags.map(t => createTagChipHtml(t)).join('');
|
||||
item.appendChild(overlay);
|
||||
const badge = document.createElement('span');
|
||||
badge.className = 'tag-count-badge';
|
||||
badge.textContent = `#${visibleTags.length}`;
|
||||
item.appendChild(badge);
|
||||
}
|
||||
|
||||
if (img.is_video) {
|
||||
|
||||
Reference in New Issue
Block a user