set max height to mat table angular material code example Example: mat-table limit height .mat-table { overflow: auto; max-height: 270px; }