Skip to content

Commit 92c3038

Browse files
committed
Fix tall images on PDPs and PLPs
1 parent a527e81 commit 92c3038

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

assets/scss/components/citadel/cards/_cards.scss

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
border: 0;
5252
width: 100%;
5353
max-height: 100%;
54+
object-fit: contain;
5455
}
5556

5657
.card-title {

assets/scss/components/stencil/productView/_productView.scss

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
@include lazy-loaded-img;
5050
max-height: 100%;
5151
width: 100%;
52+
object-fit: contain;
5253
}
5354

5455
@include lazy-loaded-padding('product_size');
@@ -79,6 +80,7 @@
7980
max-height: 50px;
8081
max-width: 50px;
8182
width: 100%;
83+
object-fit: contain;
8284
}
8385
}
8486

0 commit comments

Comments
 (0)