diff --git a/assets/css/style.css b/assets/css/style.css index 313da6e..bf87690 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -840,20 +840,33 @@ input:focus, select:focus, textarea:focus { .premade-slot-invite-btn:hover { color: var(--gold); } -.premade-class-btn { - background: none; +/* Eigene Klassen-Aktion: sitzt als zusaetzliche Kachel im (bei 5 Slots stets + freien) 6. Grid-Feld neben der Mitgliederliste statt in einer der Karten. */ +.premade-slot-class-action:hover { background: var(--gold); } + +.premade-class-action-btn { + width: 100%; + height: 100%; border: none; - padding: 0; - margin: 0; - font: inherit; - font-size: 0.78rem; - font-weight: 600; + border-radius: 0; + color: inherit; text-align: left; - color: var(--gold); + font: inherit; cursor: pointer; } -.premade-class-btn:hover { color: var(--gold-hover); text-decoration: underline; } +.premade-class-action-btn:hover { background: var(--bg-panel-alt); } + +.premade-class-action-icon { color: var(--text-muted); } + +.premade-class-action-label { + margin-left: auto; + flex-shrink: 0; + font-size: 0.75rem; + font-weight: 600; + color: var(--gold); + white-space: nowrap; +} .premade-invite-list { display: flex; diff --git a/assets/js/premades.js b/assets/js/premades.js index 65297a4..890c21e 100644 --- a/assets/js/premades.js +++ b/assets/js/premades.js @@ -50,7 +50,7 @@ wireModal(classModal); - document.querySelectorAll('.premade-class-btn').forEach(function (btn) { + document.querySelectorAll('.premade-class-action-btn').forEach(function (btn) { btn.addEventListener('click', function () { classPremadeIdField.value = btn.getAttribute('data-premade-id') || ''; var currentClass = btn.getAttribute('data-current-class') || ''; diff --git a/premades.php b/premades.php index febe33f..bdced17 100644 --- a/premades.php +++ b/premades.php @@ -193,6 +193,8 @@ include __DIR__ . '/includes/header.php'; while (count($slots) < 5) { $slots[] = ['type' => 'empty']; } + $isMemberHere = false; + $myClass = null; ?>