From 10f24615e1f47ae9216a3ec4538f0af73e5f5024 Mon Sep 17 00:00:00 2001 From: Emanuel Almeida Date: Sat, 7 Feb 2026 23:02:02 +0000 Subject: [PATCH] fix: improve expense category legend readability - Reduce pie chart height from 240px to 180px (less empty space) - Increase legend text from text-xs to text-sm - Larger color dots (w-3 h-3) and more spacing between items - Bold values with tabular-nums for alignment Co-Authored-By: Claude Opus 4.6 --- src/pages/Financial.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/pages/Financial.tsx b/src/pages/Financial.tsx index fdd846f..0bbeea6 100644 --- a/src/pages/Financial.tsx +++ b/src/pages/Financial.tsx @@ -259,19 +259,19 @@ export default function Financial() { {/* Pie Chart - Expense Distribution */} -

+

Despesas por Categoria

-
+
@@ -281,21 +281,21 @@ export default function Financial() { formatEUR(value || 0)} - contentStyle={{ background: '#18181b', border: '1px solid rgba(255,255,255,0.1)', borderRadius: 12, fontSize: 12 }} + contentStyle={{ background: '#18181b', border: '1px solid rgba(255,255,255,0.1)', borderRadius: 12, fontSize: 13 }} itemStyle={{ color: '#e4e4e7' }} />
{/* Legend */} -
+
{data.categorias.slice(0, 10).map((cat, i) => ( -
-
-
- {cat.name} +
+
+
+ {cat.name}
- {formatEUR(cat.value)} + {formatEUR(cat.value)}
))}