Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add img-wrapper in product detail view to make all images in carousel have same size
jxltomf30218d64536
diff --git a/templates/product/details.html b/templates/product/details.htmlindex d4a591d151..099d4261b6 100644--- a/templates/product/details.html+++ b/templates/product/details.html@@ -73,11 +73,13 @@<div class="carousel-inner" role="listbox">{% for image in images %}<div class="carousel-item{% if forloop.first %} active{% endif %}">- <img class="d-block img-fluid lazyload lazypreload"- data-src="{% get_thumbnail image.image method="thumbnail" size=540 %}"- data-srcset="{% get_thumbnail image.image method="thumbnail" size=540 %} 1x, {% get_thumbnail image.image method="thumbnail" size=1080 %} 2x"- alt=""- src="{% placeholder size=540 %}">+ <div class="img-wrapper" style="height: 540px;">+ <img class="d-block img-fluid lazyload lazypreload"+ data-src="{% get_thumbnail image.image method="thumbnail" size=540 %}"+ data-srcset="{% get_thumbnail image.image method="thumbnail" size=540 %} 1x, {% get_thumbnail image.image method="thumbnail" size=1080 %} 2x"+ alt=""+ src="{% placeholder size=540 %}">+ </div></div>{% endfor %}</div>