Make Module teaser apear the same way as before... (important for images with fixed height)
This commit is contained in:
parent
4ecd99a7b0
commit
77f0fbcce9
|
|
@ -14,7 +14,6 @@
|
|||
:style="placeholderStyle"
|
||||
v-show="!loaded"
|
||||
></div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
@ -91,7 +90,6 @@ const isHighDensity = () => {
|
|||
);
|
||||
};
|
||||
|
||||
|
||||
onMounted(updateDimensions);
|
||||
</script>
|
||||
|
||||
|
|
@ -100,17 +98,17 @@ onMounted(updateDimensions);
|
|||
|
||||
.wagtail-image {
|
||||
overflow: hidden;
|
||||
height: 100%;
|
||||
|
||||
&__image {
|
||||
width: 100%;
|
||||
//height: 100%;
|
||||
height: auto; /* Keep the image's aspect ratio intact */
|
||||
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: center;
|
||||
}
|
||||
|
||||
&__placeholder {
|
||||
background-color: $color-silver-light;
|
||||
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in New Issue