@@ -28,13 +28,14 @@ $mat-dense-two-line-height: 60px;
2828$mat-dense-three-line-height : 76px ;
2929$mat-dense-multi-line-padding : 16px ;
3030$mat-dense-list-icon-size : 20px ;
31+ $mat-dense-avatar-size : 36px ;
3132
3233$mat-list-item-inset-divider-offset : 72px ;
3334
3435// This mixin provides all list-item styles, changing font size and height
3536// based on whether the list is in dense mode.
36- @mixin mat-list-item-base ($base-height , $avatar- height , $two-line-height ,
37- $three-line-height , $multi-line-padding , $icon-size ) {
37+ @mixin mat-list-item-base ($base-height , $height-with-avatar , $two-line-height ,
38+ $three-line-height , $multi-line-padding , $icon-size , $avatar-size ) {
3839
3940 // Prevents the wrapper `mat-list-item-content` from collapsing due to it
4041 // being `inline` by default.
@@ -68,8 +69,8 @@ $mat-list-item-inset-divider-offset: 72px;
6869 pointer-events : none ;
6970 }
7071
71- & .mat-list-item-avatar {
72- height : $avatar- height ;
72+ & .mat-list-item-with- avatar {
73+ height : $height-with-avatar ;
7374 }
7475
7576 & .mat-2-line {
@@ -128,12 +129,12 @@ $mat-list-item-inset-divider-offset: 72px;
128129
129130 .mat-list-avatar {
130131 flex-shrink : 0 ;
131- width : $mat-list- avatar-size ;
132- height : $mat-list- avatar-size ;
132+ width : $avatar-size ;
133+ height : $avatar-size ;
133134 border-radius : 50% ;
134135
135136 ~ .mat-divider-inset {
136- @include mat-inset-divider-offset ($mat-list- avatar-size , $mat-list-side-padding );
137+ @include mat-inset-divider-offset ($avatar-size , $mat-list-side-padding );
137138 }
138139 }
139140
@@ -210,7 +211,8 @@ $mat-list-item-inset-divider-offset: 72px;
210211 $mat-list-two-line-height ,
211212 $mat-list-three-line-height ,
212213 $mat-list-multi-line-padding ,
213- $mat-list-icon-size
214+ $mat-list-icon-size ,
215+ $mat-list-avatar-size
214216 );
215217 }
216218}
@@ -232,7 +234,8 @@ $mat-list-item-inset-divider-offset: 72px;
232234 $mat-dense-two-line-height ,
233235 $mat-dense-three-line-height ,
234236 $mat-dense-multi-line-padding ,
235- $mat-dense-list-icon-size
237+ $mat-dense-list-icon-size ,
238+ $mat-dense-avatar-size
236239 );
237240 }
238241}
0 commit comments