标签: angular angular-material
要删除有角材质中列表项之间的填充,因为它包含更多的屏幕空间。
https://stackblitz.com/edit/angular-material-list?file=app/app.component.ts
答案 0 :(得分:2)
您可以为mat-list-item设置其他高度(当前高度为48px)
.wrapper .mat-list-item { height: 20px; }