From aa02a45962f5873b5d470fb606df1d6e5d24e3fb Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Tue, 4 Aug 2026 18:50:02 +0200 Subject: [PATCH] Improve usability by collapsing breakdowns --- .../portfolio-summary/portfolio-summary.component.html | 8 ++++++-- .../portfolio-summary/portfolio-summary.component.scss | 4 ---- .../portfolio-summary/portfolio-summary.component.ts | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html b/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html index 5e5205582..9394d7624 100644 --- a/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html +++ b/apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html @@ -170,7 +170,9 @@ (click)="onToggleHoldings()" > @if (hasHoldingsBreakdown) { - + @if (hasCashBreakdown) { - + 0; + return !this.isLoading && this.summary?.emergencyFund?.cash > 0; } protected get hasHoldingsBreakdown() { - return this.isLoading || this.summary?.emergencyFund?.assets > 0; + return !this.isLoading && this.summary?.emergencyFund?.assets > 0; } protected get holdingsInBaseCurrency() {