Make Wunschgruppe chips equal width via grid instead of flex-wrap

group-picker used flex-wrap, so each chip sized to its own text and
rows looked uneven. Switching to a grid with auto-fit columns (same
approach as the class-picker) makes every chip the same width
regardless of label length, including custom group names.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Maaxxs 2026-09-19 06:52:31 +02:00
parent 3f98fe342d
commit b839146219

View file

@ -696,9 +696,11 @@ input:focus, select:focus, textarea:focus {
.class-picker { grid-template-columns: repeat(2, 1fr); }
}
/* Grid statt Flex-Wrap, damit jede Wunschgruppen-Kachel unabhaengig von ihrer
Textlaenge exakt die gleiche Spaltenbreite bekommt (wie beim Klassen-Picker). */
.group-picker {
display: flex;
flex-wrap: wrap;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
gap: 0.5rem;
margin: 0.75rem 0 1.25rem;
}
@ -707,6 +709,7 @@ input:focus, select:focus, textarea:focus {
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
padding: 0.5rem 1.1rem;
background: var(--bg-panel-alt);
border: 1px solid var(--border);
@ -715,6 +718,7 @@ input:focus, select:focus, textarea:focus {
cursor: pointer;
font-size: 0.85rem;
font-weight: 500;
text-align: center;
transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}