filter-chips: nie gequetscht, passen sich der breite an

Die Schnellfilter brachen bei schmalem Fenster um ("Ohne / Remote") und
wurden rechts abgeschnitten – vor allem auf Deutsch (längere Namen).
Jetzt schrumpfen Chips nicht mehr; reicht der Platz nicht, zeigen sie nur
Icon + Zahl (Name im Tooltip), notfalls scrollt die Reihe seitlich mit
Ausblendung am Rand. Gemessen statt fester Breite, also sprachunabhängig.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-24 22:09:42 +01:00
parent 0883c8cfff
commit 76aad18646
2 changed files with 20 additions and 2 deletions

View File

@@ -120,7 +120,7 @@
.toolbar select { border: none; background: transparent; padding: 7px 4px; font-size: 13px; outline: none; color: var(--text); cursor: pointer; }
.toolbar select option { background: var(--surface); }
.chipfilters { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.fchip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); flex: 0 0 auto; white-space: nowrap; }
.fchip:hover { color: var(--text); }
.fchip.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.fchip .n { font-size: 11px; opacity: .8; }
@@ -395,7 +395,12 @@
/* toolbar stays one row: chips drop their labels first */
.toolbar { flex-wrap: nowrap; container-type: inline-size; container-name: toolbar; }
.chipfilters { flex-wrap: nowrap; min-width: 0; overflow: hidden; }
/* chips never squeeze: too many for the width → labels hide (fitChips in app.js), then the row scrolls sideways */
.chipfilters { flex-wrap: nowrap; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.chipfilters::-webkit-scrollbar { display: none; }
.chipfilters.compact .fchip:not(.active) .fl { display: none; }
.chipfilters.compact .fchip { padding: 5px 9px; }
.chipfilters.more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
.toolbar .sel { flex: 0 0 auto; }
@container toolbar (max-width: 1050px) { .fchip:not(.active) .fl { display: none; } .fchip { padding: 5px 9px; } }
@container toolbar (max-width: 700px) { .fchip .fl { display: none; } }