Trim dashboard stats and fix stat-card text overflow

Renames "Aktive Raids" to "Anstehende Raids", drops the redundant
"Meine Anmeldungen" tile, and lets stat-card labels wrap instead of
overflowing when a compound word like "Berechtigungsgruppen" is
wider than the card.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Maaxxs 2026-09-19 06:44:30 +02:00
parent 60535d60f0
commit ae24579372
2 changed files with 4 additions and 14 deletions

View file

@ -381,8 +381,9 @@ input:focus, select:focus, textarea:focus {
flex-shrink: 0; flex-shrink: 0;
} }
.stat-card h3 { margin: 0 0 0.15rem; color: var(--text); font-size: 1rem; } .stat-card > div:last-child { min-width: 0; }
.stat-card p { margin: 0; } .stat-card h3 { margin: 0 0 0.15rem; color: var(--text); font-size: 1rem; overflow-wrap: break-word; }
.stat-card p { margin: 0; overflow-wrap: break-word; }
.raid-header { .raid-header {
display: flex; display: flex;

View file

@ -16,7 +16,6 @@ $roleStmt->execute([$user['id']]);
$roleNames = array_column($roleStmt->fetchAll(), 'name'); $roleNames = array_column($roleStmt->fetchAll(), 'name');
$upcomingRaids = []; $upcomingRaids = [];
$myActiveSignups = 0;
$raidsError = null; $raidsError = null;
if ($canViewRaids) { if ($canViewRaids) {
try { try {
@ -33,9 +32,6 @@ if ($canViewRaids) {
break; break;
} }
} }
if ($raid['_my_signup']) {
$myActiveSignups++;
}
} }
unset($raid); unset($raid);
} catch (Throwable $e) { } catch (Throwable $e) {
@ -72,14 +68,7 @@ include __DIR__ . '/includes/header.php';
<div class="icon-badge"><?= icon('calendar') ?></div> <div class="icon-badge"><?= icon('calendar') ?></div>
<div> <div>
<h3><?= count($upcomingRaids) ?></h3> <h3><?= count($upcomingRaids) ?></h3>
<p class="text-muted">Aktive Raids</p> <p class="text-muted">Anstehende Raids</p>
</div>
</div>
<div class="panel stat-card">
<div class="icon-badge"><?= icon('list') ?></div>
<div>
<h3><?= $myActiveSignups ?></h3>
<p class="text-muted">Meine Anmeldungen</p>
</div> </div>
</div> </div>
<?php endif; ?> <?php endif; ?>