We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 787ae12 commit 56161fbCopy full SHA for 56161fb
src/app/shared/components/template/components/table/table.component.html
@@ -5,7 +5,7 @@
5
<td mat-cell *matCellDef="let element">{{ element[column] }}</td>
6
</ng-container>
7
8
- <tr mat-header-row *matHeaderRowDef="columnsToDisplay"></tr>
9
- <tr mat-row *matRowDef="let myRowData; columns: columnsToDisplay"></tr>
+ <tr mat-header-row *matHeaderRowDef="columnsToDisplay; sticky: true"></tr>
+ <tr mat-row *matRowDef="let row; columns: columnsToDisplay"></tr>
10
</table>
11
</div>
src/app/shared/components/template/components/table/table.component.scss
@@ -1,4 +1,9 @@
1
.table-container {
2
width: 100%;
3
- overflow-y: scroll;
+ max-height: 80vh;
4
+ overflow: auto;
+
+ tr[mat-header-row] {
+ background-color: var(--ion-background-color);
+ }
}
0 commit comments