From 0dae6298af42ac3b7319c6e7ad22a0cb2906bb35 Mon Sep 17 00:00:00 2001 From: Maaxxs <61059039+MaaxxsDev@users.noreply.github.com> Date: Sun, 20 Sep 2026 02:37:38 +0200 Subject: [PATCH] Reports: clean up table styling, show non-URL evidence as plain text Table cells now top-align (was baseline, which misaligned rows once a cell wrapped to two lines - reason/evidence, timestamp, action icons all drifted vertically against each other). Reason and evidence get their own spacing with a subtle divider instead of a cramped
. Evidence is only rendered as a clickable "Beweis-Link" when it actually looks like a URL (http/https); otherwise it shows as plain descriptive text with a note icon instead of a dead link. Co-Authored-By: Claude Sonnet 5 --- assets/css/style.css | 46 +++++++++++++++++++++++++++++++++++++++++++- reports.php | 20 ++++++++++++++----- 2 files changed, 60 insertions(+), 6 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 4c47df6..e282978 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -340,8 +340,9 @@ table { th, td { text-align: left; - padding: 0.6rem 0.75rem; + padding: 0.75rem; border-bottom: 1px solid var(--border); + vertical-align: top; } th { @@ -364,6 +365,49 @@ tr:hover td { background: var(--bg-panel-alt); } white-space: nowrap; } +/* --- Reports-Tabelle: eigene Zellen-Bausteine statt Inline-Styles --- */ + +.report-reported-cell { + display: flex; + align-items: center; + gap: 0.5rem; +} + +.report-time-secondary { + display: block; + margin-top: 0.2rem; + font-size: 0.78rem; +} + +.report-reason { + max-width: 320px; +} + +.report-reason-text { + white-space: pre-wrap; + line-height: 1.4; +} + +.report-evidence { + display: flex; + align-items: center; + gap: 0.35rem; + margin-top: 0.5rem; + padding-top: 0.5rem; + border-top: 1px dashed var(--border); + font-size: 0.82rem; + color: var(--text-muted); +} + +.report-evidence .icon { width: 14px; height: 14px; flex-shrink: 0; } + +.report-evidence a { color: var(--gold); } +.report-evidence a:hover { color: var(--gold-hover); } + +.report-evidence-text { + overflow-wrap: anywhere; +} + .text-button { background: none; border: none; diff --git a/reports.php b/reports.php index bf2d4f6..ed61101 100644 --- a/reports.php +++ b/reports.php @@ -128,9 +128,10 @@ include __DIR__ . '/includes/header.php'; $isArchived = !empty($report['archived']); $timestamp = (int) ($report['timestamp'] ?? 0); ?> + -
+
@@ -138,11 +139,20 @@ include __DIR__ . '/includes/header.php'; -
gemeldet: + gemeldet: - - -
Beweis-Link + +
+ +
+ + + Beweis-Link + + + +
+ Pkt.