Browse Source

Clean up

pull/4044/head
Thomas Kaul 9 months ago
parent
commit
a229c4879d
  1. 19
      libs/ui/src/lib/top-holdings/top-holdings.component.html
  2. 2
      libs/ui/src/lib/top-holdings/top-holdings.component.ts

19
libs/ui/src/lib/top-holdings/top-holdings.component.html

@ -60,7 +60,11 @@
> >
<div [@detailExpand]="element.expand ? 'expanded' : 'collapsed'"> <div [@detailExpand]="element.expand ? 'expanded' : 'collapsed'">
<div class="holding-parents-table"> <div class="holding-parents-table">
<table class="gf-table" mat-table [dataSource]="element.parents"> <table
class="gf-table w-100"
mat-table
[dataSource]="element.parents"
>
<colgroup> <colgroup>
<col class="w-100" /> <col class="w-100" />
<col /> <col />
@ -69,8 +73,15 @@
<ng-container matColumnDef="name"> <ng-container matColumnDef="name">
<td *matCellDef="let parentHolding" class="px-2" mat-cell> <td *matCellDef="let parentHolding" class="px-2" mat-cell>
<div class="text-truncate"> <div
{{ parentHolding?.name }} class="align-items-center d-flex line-height-1 text-nowrap"
>
<div>{{ parentHolding?.name }}</div>
</div>
<div>
<small class="text-muted">{{
parentHolding?.symbol | gfSymbol
}}</small>
</div> </div>
</td> </td>
<td *matFooterCellDef class="px-2" mat-footer-cell> <td *matFooterCellDef class="px-2" mat-footer-cell>
@ -91,7 +102,7 @@
<ng-container i18n>Value</ng-container> <ng-container i18n>Value</ng-container>
</td> </td>
</ng-container> </ng-container>
<ng-container matColumnDef="allocationInPercentage"> <ng-container matColumnDef="allocationInPercentage" stickyEnd>
<td *matCellDef="let parentHolding" mat-cell> <td *matCellDef="let parentHolding" mat-cell>
<div class="d-flex justify-content-end"> <div class="d-flex justify-content-end">
<gf-value <gf-value

2
libs/ui/src/lib/top-holdings/top-holdings.component.ts

@ -1,3 +1,4 @@
import { GfSymbolModule } from '@ghostfolio/client/pipes/symbol/symbol.module';
import { getLocale } from '@ghostfolio/common/helper'; import { getLocale } from '@ghostfolio/common/helper';
import { import {
AssetProfileIdentifier, AssetProfileIdentifier,
@ -46,6 +47,7 @@ import { Subject } from 'rxjs';
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
imports: [ imports: [
CommonModule, CommonModule,
GfSymbolModule,
GfValueComponent, GfValueComponent,
MatButtonModule, MatButtonModule,
MatPaginatorModule, MatPaginatorModule,

Loading…
Cancel
Save