Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 05b8c1e

Browse files
topherfangioThomasBurleson
authored andcommitted
fix(list): Correct avatar/icon size/spacing.
Closes #8053
1 parent 5d38b43 commit 05b8c1e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/components/list/list.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ md-list {
8282
@include rtl-prop(margin-right, margin-left, $list-item-primary-width - $list-item-dense-primary-avatar-width);
8383
}
8484
.md-avatar {
85+
flex: none;
8586
width: $list-item-dense-primary-avatar-width;
8687
height: $list-item-dense-primary-avatar-width;
8788
}
@@ -267,11 +268,19 @@ md-list-item {
267268
box-sizing: content-box;
268269
}
269270
& .md-avatar {
271+
flex: none;
270272
width: $list-item-primary-avatar-width;
271273
height: $list-item-primary-avatar-width;
272274
}
273275
& .md-avatar-icon {
274276
padding: 8px;
277+
278+
// Set the width/height to the same as the icon to fix issue on iOS Safari where the
279+
// height: 100% was causing it to be larger than it's parent
280+
svg {
281+
width: $icon-size;
282+
height: $icon-size;
283+
}
275284
}
276285

277286
& > md-checkbox {

0 commit comments

Comments
 (0)