From fefd8b4600b33b8324c707bac946cfe728819fd0 Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Sun, 11 Oct 2026 20:09:50 +0700 Subject: [PATCH] feat(client): update variables and configs --- apps/client/src/app/app.component.ts | 2 + .../portfolio-summary.component.html | 50 +++--- .../app/components/rule/rule.component.html | 2 +- .../app/components/rule/rule.component.scss | 4 +- .../portfolio/x-ray/x-ray-page.component.scss | 4 +- apps/client/src/styles/bootstrap.scss | 146 ++++++++++++++++-- 6 files changed, 168 insertions(+), 40 deletions(-) diff --git a/apps/client/src/app/app.component.ts b/apps/client/src/app/app.component.ts index fba00e1c47..c9e124723d 100644 --- a/apps/client/src/app/app.component.ts +++ b/apps/client/src/app/app.component.ts @@ -350,9 +350,11 @@ export class GfAppComponent implements OnInit { if (isDarkColorScheme(userPreferredColorScheme)) { this.document.body.classList.add('theme-dark'); this.document.body.classList.remove('theme-light'); + this.document.documentElement.setAttribute('data-bs-theme', 'dark'); } else { this.document.body.classList.add('theme-light'); this.document.body.classList.remove('theme-dark'); + this.document.documentElement.setAttribute('data-bs-theme', 'light'); } this.document 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 3f84d81bf6..94dfda7f1b 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 @@ -1,5 +1,5 @@
-
+
Time in Market
@if (isLoading) { -
+
} @else { -
+
{{ summary?.activityCount }} {summary?.activityCount, plural, @@ -39,7 +39,7 @@

-
+
Buy
-
+
Sell

-
+
Invested Capital
-
+
Absolute Gross Performance
-
+
thereof Dividend
-
+
Fees
@if (isNumber(summary?.fees)) { @@ -132,7 +132,7 @@

-
+
Absolute Net Performance
-
+
Net Performance @if ( @@ -173,7 +173,7 @@ />
-
+
thereof Dividend Performance
@@ -191,7 +191,7 @@

-
+
Total Assets
-
+
@if (hasHoldingsBreakdown && isHoldingsExpanded) { -
+
Investments
-
+
Emergency Fund
} -
+
@if (hasCashBreakdown && isCashExpanded) { -
+
Buying Power
-
+
Emergency Fund
} -
+
Excluded from Analysis @if ( @@ -394,7 +394,7 @@

-
+
Liabilities
@if (isNumber(summary?.liabilitiesInBaseCurrency)) { @@ -414,7 +414,7 @@

-
+
Net Worth
-
+
Annualized Performance
@@ -447,7 +447,7 @@

-
+
Emergency Fund @if ( @@ -503,7 +503,7 @@ />
-
+
Interest
-
+
@if (isLoading) {
:not([class*='col']) { + flex-shrink: 1; + width: auto; +} + +// Maintain 1140px container max-width at >=1400px (avoiding BS5 1320px stretch) +@media (min-width: 1400px) { + .container-xxl, + .container-xl, + .container-lg, + .container-md, + .container-sm, + .container { + max-width: 1140px; + } +} + +// Badge compatibility +.badge-pill { + border-radius: var(--bs-border-radius-pill, 50rem); +} + +.badge-secondary { + background-color: var(--bs-secondary); +} + +.badge-light { + background-color: var(--bs-light); + color: var(--bs-dark); +} + +.badge-warning { + background-color: var(--bs-warning); + color: var(--bs-dark); +}