From a9d1e8deefe21a4a6f44d71c5a5d24ac1edfedb0 Mon Sep 17 00:00:00 2001 From: Maaxxs <61059039+MaaxxsDev@users.noreply.github.com> Date: Fri, 18 Sep 2026 18:56:42 +0200 Subject: [PATCH] Give every class icon a uniform frame in the signup picker The source class icons vary slightly in shape/contrast, which made the picker boxes look inconsistent even at identical CSS dimensions. Each icon now sits inside a fixed 44x44 frame (object-fit: contain) with its own background, and the button gets a min-height so all 8 options are pixel-identical regardless of label length or icon art. Co-Authored-By: Claude Sonnet 5 --- assets/css/style.css | 31 +++++++++++++++++++++++++++++-- raids.php | 4 ++-- 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index d21d71f..2324b90 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -725,8 +725,10 @@ input:focus, select:focus, textarea:focus { display: flex; flex-direction: column; align-items: center; - gap: 0.4rem; + justify-content: flex-start; + gap: 0.5rem; padding: 0.75rem 0.5rem; + min-height: 96px; background: var(--bg-panel-alt); border: 1px solid var(--border); border-radius: 8px; @@ -736,7 +738,32 @@ input:focus, select:focus, textarea:focus { text-align: center; } -.class-picker-option img { width: 32px; height: 32px; } +/* Einheitlicher Rahmen um jedes Klassen-Icon, damit alle Kaestchen trotz + unterschiedlicher Icon-Formen/-Kontraste gleich wirken. */ +.class-icon-frame { + display: flex; + align-items: center; + justify-content: center; + width: 44px; + height: 44px; + flex-shrink: 0; + background: var(--bg-panel); + border-radius: 6px; +} + +.class-icon-frame img { + width: 30px; + height: 30px; + object-fit: contain; +} + +.class-picker-label { + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + overflow: hidden; + line-height: 1.2; +} .class-picker-option:hover { border-color: var(--gold); } diff --git a/raids.php b/raids.php index 284b695..49871f1 100644 --- a/raids.php +++ b/raids.php @@ -326,8 +326,8 @@ include __DIR__ . '/includes/header.php';