mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(list): prevent list icon shrinking (#9211)
* Since the list-item uses flexbox, it can happen that the `matListIcon` shrinks to make place for the `mat-list-text`. Similar as for the `matListAvatar` shrinking should be disabled for the `matListIcon`. Fixes #8699
This commit is contained in:
committed by
Andrew Seguin
parent
dfbd8d211a
commit
5737b9fd89
@@ -134,6 +134,7 @@ $mat-list-item-inset-divider-offset: 72px;
|
||||
}
|
||||
|
||||
.mat-list-icon {
|
||||
flex-shrink: 0;
|
||||
width: $icon-size;
|
||||
height: $icon-size;
|
||||
font-size: $icon-size;
|
||||
|
||||
Reference in New Issue
Block a user