From 2f3047d432041e930241060fd20a93075a904361 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Thu, 26 Feb 2026 20:17:19 -0500 Subject: [PATCH] Hide spending by category when only one category exists Both the doughnut chart and top categories table are now hidden when there's only a single category, as they provide no useful breakdown in that case. The net cash flow chart expands to full width when the category chart is hidden. Co-Authored-By: Claude Opus 4.6 --- MoneyMap/Pages/Index.cshtml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/MoneyMap/Pages/Index.cshtml b/MoneyMap/Pages/Index.cshtml index 1234aaa..fea28db 100644 --- a/MoneyMap/Pages/Index.cshtml +++ b/MoneyMap/Pages/Index.cshtml @@ -117,6 +117,8 @@
+ @if (Model.TopCategories.Count > 1) + {
Spending by category (last 90 days)
@@ -125,7 +127,8 @@
-
+ } +
Net cash flow (last 30 days)
@@ -206,7 +209,7 @@
} -@if (Model.TopCategories.Any()) +@if (Model.TopCategories.Count > 1) {