[IMP] website_sale: center images in cart popup and right panel

If the images are not all square, it looks better if they are centered.

task-1958000
PR: #31811
This commit is contained in:
Sébastien Theys
2019-04-29 13:45:34 +00:00
parent 0ab1940189
commit ec436c75e4
+2 -2
View File
@@ -933,7 +933,7 @@
<t t-if="website_sale_order and website_sale_order.website_order_line">
<t t-foreach="website_sale_order.website_order_line" t-as="line">
<div class="row mb8 cart_line">
<div class="col-3">
<div class="col-3 text-center">
<span t-field="line.product_id.image_small" t-options="{'widget': 'image', 'class': 'rounded'}" />
</div>
<div class="col-9">
@@ -1414,7 +1414,7 @@
<tbody>
<tr t-foreach="website_sale_order.website_order_line" t-as="line">
<td class='' colspan="2" t-if="not line.product_id.product_tmpl_id"></td>
<td class='td-img' t-if="line.product_id.product_tmpl_id">
<td class='td-img text-center' t-if="line.product_id.product_tmpl_id">
<span t-field="line.product_id.image_small" t-options="{'widget': 'image', 'class': 'rounded'}" />
</td>
<td class='td-product_name' t-if="line.product_id.product_tmpl_id">