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:
parent
60535d60f0
commit
ae24579372
2 changed files with 4 additions and 14 deletions
|
|
@ -381,8 +381,9 @@ input:focus, select:focus, textarea:focus {
|
|||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.stat-card h3 { margin: 0 0 0.15rem; color: var(--text); font-size: 1rem; }
|
||||
.stat-card p { margin: 0; }
|
||||
.stat-card > div:last-child { min-width: 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 {
|
||||
display: flex;
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ $roleStmt->execute([$user['id']]);
|
|||
$roleNames = array_column($roleStmt->fetchAll(), 'name');
|
||||
|
||||
$upcomingRaids = [];
|
||||
$myActiveSignups = 0;
|
||||
$raidsError = null;
|
||||
if ($canViewRaids) {
|
||||
try {
|
||||
|
|
@ -33,9 +32,6 @@ if ($canViewRaids) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
if ($raid['_my_signup']) {
|
||||
$myActiveSignups++;
|
||||
}
|
||||
}
|
||||
unset($raid);
|
||||
} catch (Throwable $e) {
|
||||
|
|
@ -72,14 +68,7 @@ include __DIR__ . '/includes/header.php';
|
|||
<div class="icon-badge"><?= icon('calendar') ?></div>
|
||||
<div>
|
||||
<h3><?= count($upcomingRaids) ?></h3>
|
||||
<p class="text-muted">Aktive 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>
|
||||
<p class="text-muted">Anstehende Raids</p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
|
|
|||
Loading…
Reference in a new issue