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

Commit f54275a

Browse files
committed
fix(mdCard): Fix card image height in IE.
In IE11, the height of the card image was not properly displaying proportinally to the width due to https://github.com/philipwalton/flexbugs#1-minimum-content-sizing-of-flex-items-not-honored. Fix by setting the image to use flex layout itself instead of just width. Tested in IE11, Edge, Chrome, Safari & Firefox. Fixes #761.
1 parent 88d2a09 commit f54275a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/card/card.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ md-card {
1111

1212
> img,
1313
> :not(md-card-content) img {
14+
display: flex;
15+
flex: 0 0 auto;
1416
width: 100%;
17+
height: auto;
1518
}
1619

1720
md-card-content {

0 commit comments

Comments
 (0)