From 8b3bebec4a9ef6962f455ec378bf13eaa1365195 Mon Sep 17 00:00:00 2001
From: tobikugel
Date: Mon, 3 Mar 2025 16:15:21 -0300
Subject: [PATCH] Feature/adapt syle of x-ray rule summary implemented
---
.../portfolio/x-ray/x-ray-page.component.html | 33 ++++++++++++++++---
.../portfolio/x-ray/x-ray-page.component.scss | 15 +++++++++
2 files changed, 44 insertions(+), 4 deletions(-)
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 6ec5722b7..ad801b554 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
@@ -18,10 +18,35 @@
}"
/>
} @else {
- {{ statistics?.rulesFulfilledCount }}
- out of
- {{ statistics?.rulesActiveCount }}
- rules align with your portfolio.
+
+ @if (
+ statistics?.rulesFulfilledCount === statistics?.rulesActiveCount
+ ) {
+
+ } @else if (
+ statistics?.rulesActiveCount === 0 ||
+ statistics?.rulesFulfilledCount === 0
+ ) {
+
+ } @else {
+
+ }
+
+
+ {{ statistics?.rulesFulfilledCount }}
+ out of
+ {{ statistics?.rulesActiveCount }}
+ rules align with your portfolio.
+
}