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:
parent
3f98fe342d
commit
b839146219
1 changed files with 6 additions and 2 deletions
|
|
@ -696,9 +696,11 @@ input:focus, select:focus, textarea:focus {
|
||||||
.class-picker { grid-template-columns: repeat(2, 1fr); }
|
.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 {
|
.group-picker {
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-wrap: wrap;
|
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
margin: 0.75rem 0 1.25rem;
|
margin: 0.75rem 0 1.25rem;
|
||||||
}
|
}
|
||||||
|
|
@ -707,6 +709,7 @@ input:focus, select:focus, textarea:focus {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
width: 100%;
|
||||||
padding: 0.5rem 1.1rem;
|
padding: 0.5rem 1.1rem;
|
||||||
background: var(--bg-panel-alt);
|
background: var(--bg-panel-alt);
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
|
|
@ -715,6 +718,7 @@ input:focus, select:focus, textarea:focus {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
font-weight: 500;
|
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;
|
transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue