Browse Source

Improve spacing

pull/6909/head
Thomas Kaul 6 days ago
parent
commit
fb1b968ba3
  1. 2
      apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html
  2. 5
      apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.ts

2
apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html

@ -60,7 +60,7 @@
}
</div>
@for (category of categories; track category.key) {
<div class="mb-4" [class.d-none]="category.rules?.length === 0">
<div [class.mb-4]="!$last || inactiveRules?.length > 0">
<h4 class="align-items-center d-flex m-0">
<span>{{ category.name }}</span>
@if (user?.subscription?.type === 'Basic') {

5
apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.ts

@ -107,7 +107,10 @@ export class GfXRayPageComponent {
.fetchPortfolioReport()
.pipe(takeUntilDestroyed(this.destroyRef))
.subscribe(({ xRay: { categories, statistics } }) => {
this.categories = categories;
this.categories = categories.filter(({ rules }) => {
return rules?.length > 0;
});
this.inactiveRules = this.mergeInactiveRules(categories);
this.statistics = statistics;

Loading…
Cancel
Save