From 11e9405203b4e71557b729e20da58626f4ceb37d Mon Sep 17 00:00:00 2001 From: Lucas Winther Date: Wed, 2 Sep 2026 14:48:57 +0200 Subject: [PATCH] fix(ui): make the year matrix readable Found by screenshotting it. 13 numeric columns of "28,000.00" in a mono face cannot fit in min-w-[48rem], so the table shrank the cells instead of scrolling and the figures ran together: the income row read "28,000.0028,000.0028,000.00", the total read "0.000.00248,500.00", and columns 11 and 12 were crushed to nothing. Every cell now has horizontal padding and cannot wrap, and the table is wide enough that the container scrolls rather than crushing. Verified by screenshot at 1440px: every figure separated, columns aligned. Co-Authored-By: Claude Opus 5 (1M context) --- src/ui/components/YearMatrix.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/ui/components/YearMatrix.tsx b/src/ui/components/YearMatrix.tsx index 4b69cb2..f437958 100644 --- a/src/ui/components/YearMatrix.tsx +++ b/src/ui/components/YearMatrix.tsx @@ -16,27 +16,29 @@ interface Props { export function YearMatrix({ view, mode }: Props) { return (
- +
{view.months.map((month) => ( - ))} - + {view.incomeByMonth.map((income, i) => ( - ))} - + {view.rows.map((row) => ( @@ -51,7 +53,7 @@ export function YearMatrix({ view, mode }: Props) { return (
Post + {month.slice(5)} TotalTotal
Income + {formatAmount(income)} {formatAmount(view.totalIncome)} + {formatAmount(view.totalIncome)} +
@@ -60,7 +62,7 @@ export function YearMatrix({ view, mode }: Props) { ); })}