From 310bf57b7c6e991104a7ddb21dff56b6248906c4 Mon Sep 17 00:00:00 2001 From: tobikugel Date: Wed, 5 Mar 2025 21:12:15 -0300 Subject: [PATCH] refactor: adjust layout in layout and adapted skeleton loader --- .../app/components/rule/rule.component.scss | 2 +- .../portfolio/x-ray/x-ray-page.component.html | 49 ++++++++++++------- .../portfolio/x-ray/x-ray-page.component.scss | 3 +- .../portfolio/x-ray/x-ray-page.component.ts | 2 +- 4 files changed, 34 insertions(+), 22 deletions(-) diff --git a/apps/client/src/app/components/rule/rule.component.scss b/apps/client/src/app/components/rule/rule.component.scss index 54ddce823..adb081abc 100644 --- a/apps/client/src/app/components/rule/rule.component.scss +++ b/apps/client/src/app/components/rule/rule.component.scss @@ -2,7 +2,7 @@ display: block; .icon-container { - background-color: rgba(var(--dark-primary-text), 0.05); + background-color: rgba(var(--palette-foreground-base), 0.02); border-radius: 0.25rem; height: 2rem; diff --git a/apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html b/apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html index 3eccd02a7..a1e72109e 100644 --- a/apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html +++ b/apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html @@ -7,18 +7,28 @@ risks in your portfolio. Adjust the rules below and set custom thresholds to align with your personal investment strategy.

-

+

@if (isLoading) { - +
+ + +
} @else { - + } @else if ( statistics?.rulesFulfilledCount === statistics?.rulesActiveCount ) { - + } @else { - + } - - - {{ statistics?.rulesFulfilledCount }} +
+
+ {{ statistics?.rulesFulfilledCount }} out of {{ statistics?.rulesActiveCount }} rules align with your portfolio. - +
} -

+