fix(filter): Counter-Badge aus dem Trigger entfernt
All checks were successful
Build & Publish Docker Image / build-and-push (push) Successful in 1m15s

Der „2/5"-Badge neben dem Slider-Icon war visuell laut und wiederholte
nur, was der User im Dropdown direkt sieht. Raus damit — Trigger zeigt
jetzt nur noch das Icon und den Chevron.

Ungenutzten label-Getter aus dem Store auch entfernt.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-18 08:43:35 +02:00
parent 15442ff72b
commit d1ddd51da1
2 changed files with 0 additions and 12 deletions

View File

@@ -81,11 +81,6 @@ class SearchFilterStore {
return [...this.active].join(',');
}
// Badge-Text: "2/5" wenn gefiltert, sonst "Alle".
get label(): string {
if (!this.isFiltered) return 'Alle';
return `${this.active.size}/${this.domains.length}`;
}
}
export const searchFilterStore = new SearchFilterStore();

View File

@@ -91,7 +91,6 @@
onclick={toggleTrigger}
>
<SlidersHorizontal size={16} strokeWidth={2} />
<span class="badge">{searchFilterStore.label}</span>
<ChevronDown size={14} strokeWidth={2} />
</button>
@@ -185,9 +184,6 @@
.trigger.inline:hover {
background: rgba(43, 106, 61, 0.06);
}
.badge {
font-weight: 600;
}
.menu {
position: absolute;
top: calc(100% + 0.4rem);
@@ -337,9 +333,6 @@
padding: 0.5rem 0.55rem;
font-size: 0.82rem;
}
.badge {
display: none;
}
.menu {
left: -0.25rem;
min-width: calc(100vw - 2rem);