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

fix(list): Correct avatar/icon size/spacing. #8053

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/components/list/list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ md-list {
@include rtl-prop(margin-right, margin-left, $list-item-primary-width - $list-item-dense-primary-avatar-width);
}
.md-avatar {
flex: none;
width: $list-item-dense-primary-avatar-width;
height: $list-item-dense-primary-avatar-width;
}
Expand Down Expand Up @@ -267,11 +268,19 @@ md-list-item {
box-sizing: content-box;
}
& .md-avatar {
flex: none;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Truly odd requirement.

width: $list-item-primary-avatar-width;
height: $list-item-primary-avatar-width;
}
& .md-avatar-icon {
padding: 8px;

// Set the width/height to the same as the icon to fix issue on iOS Safari where the
// height: 100% was causing it to be larger than it's parent
svg {
width: $icon-size;
height: $icon-size;
}
}

& > md-checkbox {
Expand Down