From b8391462190029878415fadeb8df6ba61afad527 Mon Sep 17 00:00:00 2001 From: Maaxxs <61059039+MaaxxsDev@users.noreply.github.com> Date: Sat, 19 Sep 2026 06:52:31 +0200 Subject: [PATCH] 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 --- assets/css/style.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index aec1717..7e4adf4 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -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; }