Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use the same image size in dashboard pages
Artur Smęt47470d7c7e73
diff --git a/saleor/dashboard/templates/dashboard/product/list.html b/saleor/dashboard/templates/dashboard/product/list.htmlindex 71e6af40a6..c8035eef30 100644--- a/saleor/dashboard/templates/dashboard/product/list.html+++ b/saleor/dashboard/templates/dashboard/product/list.html@@ -47,7 +47,7 @@{% for product in products %}<li class="collection-item avatar list-item">{% if product.images.exists %}- <img src="{{ product.images.first.image.crop.50x50 }}" alt="" class="circle teal">+ <img src="{{ product.images.first.image.crop.100x100 }}" alt="" class="circle teal">{% else %}<img src="{% static 'images/product-image-placeholder-small.png' %}" alt="" class="circle teal">{% endif %}diff --git a/saleor/dashboard/templates/dashboard/product/modal_product_image_confirm_delete.html b/saleor/dashboard/templates/dashboard/product/modal_product_image_confirm_delete.htmlindex 040e566f58..d4a2eaa439 100644--- a/saleor/dashboard/templates/dashboard/product/modal_product_image_confirm_delete.html+++ b/saleor/dashboard/templates/dashboard/product/modal_product_image_confirm_delete.html@@ -12,7 +12,7 @@</div><div class="center-align">- <img class="responsive-img" src="{{ product_image.image.crop.400x250 }}" alt="">+ <img class="responsive-img" src="{{ product_image.image.crop.400x400 }}" alt=""></div><p>diff --git a/saleor/dashboard/templates/dashboard/product/product_confirm_delete.html b/saleor/dashboard/templates/dashboard/product/product_confirm_delete.htmlindex 8bc79488b1..537556ad0c 100644--- a/saleor/dashboard/templates/dashboard/product/product_confirm_delete.html+++ b/saleor/dashboard/templates/dashboard/product/product_confirm_delete.html@@ -33,7 +33,7 @@<div class="card"><div class="card-content">{% if object.images.exists %}- <img src="{{ product.images.first.image.crop.600x600 }}" alt="" class="responsive-img">+ <img src="{{ product.images.first.image.crop.400x400 }}" alt="" class="responsive-img">{% else %}<img src="{% static 'images/product-image-placeholder.png' %}" alt="" class="responsive-img">{% endif %}diff --git a/saleor/dashboard/templates/dashboard/product/product_form.html b/saleor/dashboard/templates/dashboard/product/product_form.htmlindex 0f93c18185..05974cb750 100644--- a/saleor/dashboard/templates/dashboard/product/product_form.html+++ b/saleor/dashboard/templates/dashboard/product/product_form.html@@ -284,7 +284,7 @@{% for image in images %}<li class="col s6 m3 card product-gallery-item" data-id="{{ image.pk }}"><div class="card-image product-gallery-item-image">- <img class="responsive-img" src="{{ image.image.crop.400x250 }}" alt="">+ <img class="responsive-img" src="{{ image.image.crop.400x400 }}" alt=""></div><div class="card-content">diff --git a/saleor/dashboard/templates/dashboard/product/product_image_confirm_delete.html b/saleor/dashboard/templates/dashboard/product/product_image_confirm_delete.htmlindex 1cf52630bd..2ee3906149 100644--- a/saleor/dashboard/templates/dashboard/product/product_image_confirm_delete.html+++ b/saleor/dashboard/templates/dashboard/product/product_image_confirm_delete.html@@ -28,7 +28,7 @@<div class="card"><div class="card-content"><div class="card-title black-text">{{ product_image.alt }}</div>- <img src="{{ product_image.image.crop.350x350}}" alt="{{ product_image.alt }}" class="responsive-img">+ <img src="{{ product_image.image.crop.400x400}}" alt="{{ product_image.alt }}" class="responsive-img"></div></div></div>