Skip to content

Commit

Permalink
fix(ImgLoader): use object-fit: contain
Browse files Browse the repository at this point in the history
scale image properly according to its parent container
  • Loading branch information
aneurysmjs committed Jul 14, 2019
1 parent 960b754 commit 6e67ac2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/components/shared/ImgLoader/ImgLoader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ $pos: calc(50% - 24px);
.imgLoader {
height: 100%;
left: 0;
object-fit: contain;
position: absolute;
top: 0;
width: 100%;
Expand Down

0 comments on commit 6e67ac2

Please sign in to comment.