From 93f52f1ae15e8bf20c3f95a045cca67ff66941dd Mon Sep 17 00:00:00 2001 From: Sven Carstensen Date: Tue, 17 Mar 2026 09:00:19 +0100 Subject: [PATCH] style: Display invoice statistics in a table layout - Replace stat cards with table layout - Keep consistent text size with rest of UI - Align values to the right for better readability --- frontend/src/pages/InvoiceManagementPage.tsx | 58 +++++++++++--------- 1 file changed, 31 insertions(+), 27 deletions(-) diff --git a/frontend/src/pages/InvoiceManagementPage.tsx b/frontend/src/pages/InvoiceManagementPage.tsx index 2233363..49972a1 100644 --- a/frontend/src/pages/InvoiceManagementPage.tsx +++ b/frontend/src/pages/InvoiceManagementPage.tsx @@ -158,33 +158,37 @@ export default function InvoiceManagementPage() { -
-
- {invoices.length} - Gesamtrechnungen -
-
- - {invoices.filter((i) => i.status === "PAID").length} - - Bezahlt -
-
- - {invoices.filter((i) => i.status === "OVERDUE").length} - - Überfällig -
-
- - {formatCurrency( - invoices - .filter((i) => i.status === "PAID") - .reduce((sum, i) => sum + i.totalAmount, 0) - )} - - Gesamtumsatz -
+
+ + + + + + + + + + + + + + + + + + + +
Gesamtrechnungen{invoices.length}
Bezahlt + {invoices.filter((i) => i.status === "PAID").length} +
Überfällig + {invoices.filter((i) => i.status === "OVERDUE").length} +
Gesamtumsatz + {formatCurrency( + invoices + .filter((i) => i.status === "PAID") + .reduce((sum, i) => sum + i.totalAmount, 0) + )} +