Browse Source

Improve holding table UI

pull/4044/head
JoryHogeveen 9 months ago
parent
commit
648397b90a
  1. 2
      libs/ui/src/lib/top-holdings/top-holdings.component.html
  2. 14
      libs/ui/src/lib/top-holdings/top-holdings.component.scss

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

@ -1,6 +1,6 @@
<div class="overflow-x-auto"> <div class="overflow-x-auto">
<table <table
class="gf-table w-100" class="gf-table holdings-table w-100"
mat-table mat-table
matSort matSort
matSortActive="allocationInPercentage" matSortActive="allocationInPercentage"

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

@ -1,7 +1,7 @@
:host { :host {
display: block; display: block;
.gf-table { .holdings-table {
th { th {
::ng-deep { ::ng-deep {
.mat-sort-header-container { .mat-sort-header-container {
@ -9,10 +9,17 @@
} }
} }
} }
}
tr.holding-detail { tr.holding-detail {
height: 0; height: 0;
&:hover {
// Disable hover effect.
background-color: var(--mat-table-background-color-even) !important;
}
}
tr.expanded {
background-color: var(--mat-table-background-color-even);
} }
tr:not(.expanded) + tr.holding-detail td { tr:not(.expanded) + tr.holding-detail td {
@ -55,7 +62,7 @@
tr { tr {
height: auto; height: auto;
&:hover { &:hover {
filter: brightness(0.95); background-color: var(--mat-table-background-color-hover);
} }
} }
th, th,
@ -64,3 +71,4 @@
} }
} }
} }
}

Loading…
Cancel
Save