From ce76a290384efe39bb75d3ea29bdaea74f0ed375 Mon Sep 17 00:00:00 2001 From: Sven Carstensen Date: Tue, 17 Mar 2026 08:59:08 +0100 Subject: [PATCH] style: Improve invoice statistics layout with vertical spacing - Change stats grid to vertical list layout - Add more spacing between stat cards - Display value and label horizontally aligned with proper gap --- frontend/src/pages/InvoiceManagementPage.tsx | 28 +++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/frontend/src/pages/InvoiceManagementPage.tsx b/frontend/src/pages/InvoiceManagementPage.tsx index 2233363..d9383b5 100644 --- a/frontend/src/pages/InvoiceManagementPage.tsx +++ b/frontend/src/pages/InvoiceManagementPage.tsx @@ -158,32 +158,34 @@ export default function InvoiceManagementPage() { -
-
- {invoices.length} - Gesamtrechnungen +
+
+ + {invoices.length} + + Gesamtrechnungen
-
- +
+ {invoices.filter((i) => i.status === "PAID").length} - Bezahlt + Bezahlt
-
- +
+ {invoices.filter((i) => i.status === "OVERDUE").length} - Überfällig + Überfällig
-
- +
+ {formatCurrency( invoices .filter((i) => i.status === "PAID") .reduce((sum, i) => sum + i.totalAmount, 0) )} - Gesamtumsatz + Gesamtumsatz