[FIX] web, website_*: avoid inline style for image width 128

closes odoo/odoo#47134

X-original-commit: ccb00bd40e7ce58108aeb3ca66abf28a1e12c290
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
This commit is contained in:
Sébastien Theys
2020-03-06 20:04:05 +00:00
parent 8e98d71f36
commit b07728e94e
3 changed files with 8 additions and 4 deletions
+4
View File
@@ -138,3 +138,7 @@ span.o_force_ltr {
max-width: 128px !important;
max-height: 128px !important;
}
.o_width_128 {
width: 128px;
}
@@ -83,7 +83,7 @@
<div class="media mt-3">
<a t-attf-href="/partners/#{slug(partner)}?#{current_grade and 'grade_id=%s&amp;' % current_grade.id}#{current_country and 'country_id=%s' % current_country.id}"
t-field="partner.image_128"
class="mr-3 text-center" style="width: 128px;"
class="mr-3 text-center o_width_128"
t-options='{"widget": "image", "qweb_img_responsive": False, "class": "o_image_128_max"}'
></a>
<div class="media-body o_partner_body" style="min-height: 64px;">
@@ -165,7 +165,7 @@
<t t-if="any([p.website_published for p in partner.implemented_partner_ids])">
<h3 id="references">References</h3>
<div t-foreach="partner.implemented_partner_ids" t-if="reference.website_published" t-as="reference" class="media mt-3">
<span t-field="reference.image_128" class="d-block mr-3 text-center" style="width: 128px;" t-options='{"widget": "image", "qweb_img_responsive": False, "class": "o_image_128_max"}'/>
<span t-field="reference.image_128" class="d-block mr-3 text-center o_width_128" t-options='{"widget": "image", "qweb_img_responsive": False, "class": "o_image_128_max"}'/>
<div class="media-body" style="min-height: 64px;">
<span t-field="reference.self"/>
<div t-field='reference.website_short_description'/>
@@ -37,7 +37,7 @@
<div class="media mt-3">
<a t-attf-href="/customers/#{slug(partner)}"
t-field="partner.image_128"
class="d-block mr-3 text-center" style="width: 128px;"
class="d-block mr-3 text-center o_width_128"
t-options='{"widget": "image", "qweb_img_responsive": False, "class": "o_image_128_max"}'
></a>
<div class="media-body" style="min-height: 64px;">
@@ -220,7 +220,7 @@
<div t-foreach="partner.implemented_partner_ids" t-as="reference" class="media mt-3">
<t t-if="reference.website_published">
<a t-attf-href="/customers/#{slug(reference)}">
<span t-field="reference.image_128" class="d-block mr-3 text-center" style="width: 128px;" t-options='{"widget": "image", "qweb_img_responsive": False, "class": "o_image_128_max"}'/>
<span t-field="reference.image_128" class="d-block mr-3 text-center o_width_128" t-options='{"widget": "image", "qweb_img_responsive": False, "class": "o_image_128_max"}'/>
</a>
<div class="media-body" style="min-height: 64px;">
<a t-attf-href="/customers/#{slug(reference)}">