fix: move category spending chart above the ranking list on Reports

Picking a category at the top meant scrolling past the whole "top
categories" list before reaching its chart, then scrolling back up to
pick another one. Swapped the two so the chart renders immediately after
the category/range selector.
This commit is contained in:
ZProger
2026-08-16 23:37:51 +03:00
parent 1f5fab5010
commit 7235d74f80
3 changed files with 4 additions and 4 deletions

View File

@@ -132,6 +132,8 @@ export function ReportsPage() {
</div>
</div>
<CategorySpendingChart report={report} isLoading={isReportLoading} />
<CategoryRankingCard
items={ranking?.items ?? []}
isLoading={isRankingLoading}
@@ -142,8 +144,6 @@ export function ReportsPage() {
}}
/>
<CategorySpendingChart report={report} isLoading={isReportLoading} />
<Card>
<CardHeader>
<CardTitle>{t("reports.transactionsTitle")}</CardTitle>