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

Commit d381619

Browse files
crisbetoThomasBurleson
authored andcommitted
fix(card): image stretching on IE
* Fixes the card images stretching too much in IE11. * Fixes icons not being aligned in the colors demo. Fixes #8629. Closes #8653
1 parent ed56a39 commit d381619

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/components/card/card.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ md-card {
6565
display: flex;
6666
flex: 0 0 auto;
6767
width: 100%;
68-
height: 100% !important;
68+
height: auto;
6969
}
7070

7171
md-card-title {

src/components/colors/demoBasicUsage/regularCard.tmpl.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<md-card>
22
<md-card-title>
33
<md-card-title-media>
4-
<div class="md-media-sm card-media" layout layout-align="center center" >
4+
<div class="md-media-sm card-media" layout>
55
<md-icon md-svg-icon="person" style="color:grey"></md-icon>
66
</div>
77
</md-card-title-media>

src/components/colors/demoBasicUsage/userCard.tmpl.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<md-card md-colors="::{backgroundColor: '{{theme}}-primary-700'}">
22
<md-card-title>
33
<md-card-title-media>
4-
<div class="md-media-sm card-media" layout layout-align="center center"
5-
md-colors="::{background: '{{theme}}-accent'}">
4+
<div class="md-media-sm card-media" layout md-colors="::{background: '{{theme}}-accent'}">
65
<md-icon md-svg-icon="person"></md-icon>
76
</div>
87
</md-card-title-media>

0 commit comments

Comments
 (0)