Fix flash of stretched images
This commit is contained in:
parent
884eaa5272
commit
c5f57f7618
|
|
@ -19,10 +19,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.c-card__image {
|
.c-card__image {
|
||||||
width: 100%;
|
height: auto;
|
||||||
height: 160px;
|
|
||||||
background-color: var(--color-grey-500); // fallback while image is loading
|
background-color: var(--color-grey-500); // fallback while image is loading
|
||||||
object-fit: cover;
|
|
||||||
border-radius: 20px 20px 0 0;
|
border-radius: 20px 20px 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue