Browse Source

Fix border width and codestyle (order)

pull/4044/head
JoryHogeveen 9 months ago
parent
commit
ef642edf4c
  1. 2
      libs/ui/src/lib/top-holdings/top-holdings.component.html
  2. 12
      libs/ui/src/lib/top-holdings/top-holdings.component.scss
  3. 20
      libs/ui/src/lib/top-holdings/top-holdings.component.ts

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

@ -101,7 +101,7 @@
<tr <tr
*matRowDef="let element; columns: displayedColumns" *matRowDef="let element; columns: displayedColumns"
mat-row mat-row
[class.example-expanded-row]="element.expand ?? false" [class.expanded]="element.expand ?? false"
(click)=" (click)="
element.expand ? (element.expand = false) : (element.expand = true) element.expand ? (element.expand = false) : (element.expand = true)
" "

12
libs/ui/src/lib/top-holdings/top-holdings.component.scss

@ -1,10 +1,6 @@
:host { :host {
display: block; display: block;
tr.holding-detail {
height: 0;
}
.gf-table { .gf-table {
th { th {
::ng-deep { ::ng-deep {
@ -14,4 +10,12 @@
} }
} }
} }
tr.holding-detail {
height: 0;
}
tr:not(.expanded) + tr.holding-detail td {
border-bottom: 0;
}
} }

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

@ -29,6 +29,16 @@ import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
import { Subject } from 'rxjs'; import { Subject } from 'rxjs';
@Component({ @Component({
animations: [
trigger('detailExpand', [
state('collapsed,void', style({ height: '0px', minHeight: '0' })),
state('expanded', style({ height: '*' })),
transition(
'expanded <=> collapsed',
animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)')
)
])
],
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
imports: [ imports: [
CommonModule, CommonModule,
@ -40,16 +50,6 @@ import { Subject } from 'rxjs';
MatListModule, MatListModule,
NgxSkeletonLoaderModule NgxSkeletonLoaderModule
], ],
animations: [
trigger('detailExpand', [
state('collapsed,void', style({ height: '0px', minHeight: '0' })),
state('expanded', style({ height: '*' })),
transition(
'expanded <=> collapsed',
animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)')
)
])
],
schemas: [CUSTOM_ELEMENTS_SCHEMA], schemas: [CUSTOM_ELEMENTS_SCHEMA],
selector: 'gf-top-holdings', selector: 'gf-top-holdings',
standalone: true, standalone: true,

Loading…
Cancel
Save