From dbcf8e7abdad0dae332c111e8a91d6aef25bde5f Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Sun, 21 Dec 2025 07:42:09 +0100 Subject: [PATCH] refactor: update grid layout for transactions and overview cards; adjust chart dimensions and axis properties for improved responsiveness --- app/transactions/page.tsx | 2 +- components/dashboard/overview-cards.tsx | 12 ++++++------ components/statistics/monthly-chart.tsx | 17 ++++++++++++----- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/app/transactions/page.tsx b/app/transactions/page.tsx index d68fa63..979189b 100644 --- a/app/transactions/page.tsx +++ b/app/transactions/page.tsx @@ -239,7 +239,7 @@ export default function TransactionsPage() { {/* Summary cards */} {!isLoadingTransactions && ( -
+
diff --git a/components/dashboard/overview-cards.tsx b/components/dashboard/overview-cards.tsx index b560537..fb7a1b5 100644 --- a/components/dashboard/overview-cards.tsx +++ b/components/dashboard/overview-cards.tsx @@ -57,10 +57,10 @@ export function OverviewCards({ data }: OverviewCardsProps) { }; return ( -
+
- + Solde Total
@@ -86,7 +86,7 @@ export function OverviewCards({ data }: OverviewCardsProps) { - + Revenus du mois
@@ -108,7 +108,7 @@ export function OverviewCards({ data }: OverviewCardsProps) { - + Dépenses du mois
@@ -130,7 +130,7 @@ export function OverviewCards({ data }: OverviewCardsProps) { - + Pointage
@@ -149,7 +149,7 @@ export function OverviewCards({ data }: OverviewCardsProps) { - + Catégorisation
diff --git a/components/statistics/monthly-chart.tsx b/components/statistics/monthly-chart.tsx index 0bb57c4..56a86d9 100644 --- a/components/statistics/monthly-chart.tsx +++ b/components/statistics/monthly-chart.tsx @@ -47,14 +47,21 @@ export function MonthlyChart({ const chartContent = ( <> {data.length > 0 ? ( -
+
- + - + { // Format compact pour les grandes valeurs if (Math.abs(v) >= 1000) { @@ -96,7 +103,7 @@ export function MonthlyChart({
) : ( -
+
Pas de données pour cette période
)}