Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fix(list): Correct avatar/icon size/spacing.
Browse files Browse the repository at this point in the history
Closes #8053
  • Loading branch information
topherfangio authored and ThomasBurleson committed Apr 14, 2016
1 parent 5d38b43 commit 05b8c1e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/list/list.scss
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;
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

0 comments on commit 05b8c1e

Please sign in to comment.