+
@if (errors()?.length > 0 && !isLoading()) {
-
From 69b246f0db154e8c5760358a9fd867eea56861d5 Mon Sep 17 00:00:00 2001
From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com>
Date: Sun, 26 Jul 2026 09:47:22 +0200
Subject: [PATCH 2/3] Improve styling
---
.../home-overview/home-overview.component.ts | 12 +++++++++++-
.../app/components/home-overview/home-overview.html | 1 +
.../portfolio-performance.component.html | 1 +
.../portfolio-performance.component.scss | 4 ++++
.../portfolio-performance.component.ts | 1 +
libs/common/src/lib/config.ts | 1 +
6 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/apps/client/src/app/components/home-overview/home-overview.component.ts b/apps/client/src/app/components/home-overview/home-overview.component.ts
index 24d582ff82..de53bf530d 100644
--- a/apps/client/src/app/components/home-overview/home-overview.component.ts
+++ b/apps/client/src/app/components/home-overview/home-overview.component.ts
@@ -5,7 +5,8 @@ import { UserService } from '@ghostfolio/client/services/user/user.service';
import {
DEFAULT_CURRENCY,
DEFAULT_DATE_RANGE,
- NUMERICAL_PRECISION_THRESHOLD_6_FIGURES
+ NUMERICAL_PRECISION_THRESHOLD_6_FIGURES,
+ NUMERICAL_PRECISION_THRESHOLD_7_FIGURES
} from '@ghostfolio/common/config';
import {
AssetProfileIdentifier,
@@ -51,6 +52,7 @@ export class GfHomeOverviewComponent implements OnInit {
protected readonly isLoadingPerformance = signal(true);
protected readonly performance = signal
(null);
protected readonly performanceLabel = $localize`Performance`;
+ protected readonly performanceSize = signal<'large' | 'medium'>('large');
protected readonly precision = signal(2);
protected readonly user = signal(null);
@@ -143,6 +145,7 @@ export class GfHomeOverviewComponent implements OnInit {
);
this.precision.set(2);
+ this.performanceSize.set('large');
if (
this.deviceType() === 'mobile' &&
@@ -150,6 +153,13 @@ export class GfHomeOverviewComponent implements OnInit {
NUMERICAL_PRECISION_THRESHOLD_6_FIGURES
) {
this.precision.set(0);
+
+ if (
+ performance.currentValueInBaseCurrency >=
+ NUMERICAL_PRECISION_THRESHOLD_7_FIGURES
+ ) {
+ this.performanceSize.set('medium');
+ }
}
this.isLoadingPerformance.set(false);
diff --git a/apps/client/src/app/components/home-overview/home-overview.html b/apps/client/src/app/components/home-overview/home-overview.html
index 8de122d145..90b9aafc8e 100644
--- a/apps/client/src/app/components/home-overview/home-overview.html
+++ b/apps/client/src/app/components/home-overview/home-overview.html
@@ -91,6 +91,7 @@
[performance]="performance()"
[precision]="precision()"
[showDetails]="showDetails()"
+ [size]="performanceSize()"
[unit]="unit()"
/>
diff --git a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html
index e463937334..771e0b805a 100644
--- a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html
+++ b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html
@@ -24,6 +24,7 @@
}