From c720b0173d8f256bac2b51a057024b60ad9bbd65 Mon Sep 17 00:00:00 2001 From: Maaxxs <61059039+MaaxxsDev@users.noreply.github.com> Date: Sun, 20 Sep 2026 02:56:32 +0200 Subject: [PATCH] Reports: replace the table with a styled card list The dense table row (avatar, name, time, reason/evidence, badges, actions all crammed into one baseline-misaligned line) is now a stacked list of report cards, matching the panel/avatar-chip language used elsewhere on the site: a colored left border for quick status scanning (green = active, muted = archived, gold on hover with a slight lift), a header row with a 40px avatar and reporter subtitle, reason/evidence in their own section, and a footer row for the incident timestamp and the archive/delete actions. Verified the user-filter dropdown still layers correctly above the new cards, since each card now also uses backdrop-filter (same stacking- context concern fixed previously via .panel-filter-bar's z-index). Co-Authored-By: Claude Sonnet 5 --- assets/css/style.css | 102 +++++++++++++++++++++++++----- assets/js/reports.js | 2 +- reports.php | 144 ++++++++++++++++++++----------------------- 3 files changed, 155 insertions(+), 93 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 9806d6f..a3ddaa8 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -365,35 +365,97 @@ tr:hover td { background: var(--bg-panel-alt); } white-space: nowrap; } -/* --- Reports-Tabelle: eigene Zellen-Bausteine statt Inline-Styles --- */ +/* --- Reports: Kartenliste statt Tabelle --- */ -.report-reported-cell { +.report-list { + display: flex; + flex-direction: column; + gap: 0.85rem; +} + +.report-card { + background: rgba(35, 35, 35, 0.62); + backdrop-filter: blur(8px); + -webkit-backdrop-filter: blur(8px); + border: 1px solid var(--border); + border-left-width: 3px; + border-left-color: var(--success); + border-radius: 10px; + padding: 1.1rem 1.35rem; + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); + transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; +} + +.report-card:hover { + border-top-color: var(--gold); + border-right-color: var(--gold); + border-bottom-color: var(--gold); + transform: translateY(-2px); + box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4); +} + +.report-card-archived { + border-left-color: var(--text-muted); + opacity: 0.7; +} + +.report-card-archived:hover { opacity: 0.95; } + +.report-card-main { + display: flex; + align-items: center; + justify-content: space-between; + gap: 1rem; + flex-wrap: wrap; +} + +.report-card-user { + display: flex; + align-items: center; + gap: 0.75rem; + min-width: 0; +} + +.report-card-user-info { + display: flex; + flex-direction: column; + gap: 0.1rem; + min-width: 0; +} + +.report-card-user-info strong { + font-size: 1.05rem; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.report-card-user-info .text-muted { font-size: 0.82rem; } + +.report-card-badges { display: flex; align-items: center; gap: 0.5rem; + flex-shrink: 0; } -.report-time-secondary { - display: block; - margin-top: 0.2rem; - font-size: 0.78rem; -} - -.report-reason { - max-width: 320px; +.report-card-body { + margin-top: 0.9rem; + padding-top: 0.9rem; + border-top: 1px dashed var(--border); } .report-reason-text { white-space: pre-wrap; - line-height: 1.4; + line-height: 1.45; } .report-evidence { display: flex; align-items: center; - gap: 0.35rem; - margin-top: 0.5rem; - padding-top: 0.5rem; + gap: 0.4rem; + margin-top: 0.6rem; + padding-top: 0.6rem; border-top: 1px dashed var(--border); font-size: 0.82rem; color: var(--text-muted); @@ -408,6 +470,18 @@ tr:hover td { background: var(--bg-panel-alt); } overflow-wrap: anywhere; } +.report-card-footer { + display: flex; + align-items: center; + justify-content: space-between; + gap: 1rem; + flex-wrap: wrap; + margin-top: 0.9rem; + padding-top: 0.8rem; + border-top: 1px solid var(--border); + font-size: 0.8rem; +} + .text-button { background: none; border: none; diff --git a/assets/js/reports.js b/assets/js/reports.js index d1f5a6a..22a9f57 100644 --- a/assets/js/reports.js +++ b/assets/js/reports.js @@ -129,7 +129,7 @@ var triggerContent = document.getElementById('report-user-filter-trigger-content'); var panel = document.getElementById('report-user-filter-panel'); var options = panel ? panel.querySelectorAll('.user-filter-option') : []; - var rows = document.querySelectorAll('.report-row'); + var rows = document.querySelectorAll('.report-card'); var emptyMessage = document.getElementById('report-filter-empty'); if (!wrapper || !trigger || !panel || !options.length || !rows.length) return; diff --git a/reports.php b/reports.php index d25467e..3a5f4b1 100644 --- a/reports.php +++ b/reports.php @@ -146,93 +146,81 @@ include __DIR__ . '/includes/header.php';

-
-
- - - - - - - - - - - - - - - - - - - - - - - - - + + + +
+
+ +
+ + + Beweis-Link + + + +
-
- - -
GemeldetMelderZeitpunktGrundPunkteStatus
-
- +
+ + +
+
+
+ + -
- - gemeldet: - -
- -
- - - Beweis-Link - - - -
- -
Pkt. + +
+ Pkt. Archiviert Aktiv -
-
- - - - -
-
- - - - -
-
- -
+
+ + + + +