diff options
| author | Arnaud Baes <arb@odoo.com> | 2020-02-26 13:45:17 +0000 |
|---|---|---|
| committer | Arnaud Baes <arb@odoo.com> | 2020-02-26 17:12:10 +0000 |
| commit | 76ecf3761e02a0b6957ecad2d9d3bfdd80298639 (patch) | |
| tree | 3715430eb365370ca399bc0281e8c7d23f6e80de /addons/website_customer | |
| parent | 3da7db8cb68548560a2ce9ef4a3b0694d2dd0d75 (diff) | |
[FIX] website_customer: Force 128px max on partners logos
Force partners images to never exceed 128x128 thus preventing
breaking the layout of the pages where they are rendered.
closes odoo/odoo#46384
X-original-commit: 3619c1e58d82697f5444f7c03537b95e859ea9e9
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/website_customer')
| -rw-r--r-- | addons/website_customer/views/website_customer_templates.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/website_customer/views/website_customer_templates.xml b/addons/website_customer/views/website_customer_templates.xml index 8a5c917c1d1..5114b84db8f 100644 --- a/addons/website_customer/views/website_customer_templates.xml +++ b/addons/website_customer/views/website_customer_templates.xml @@ -37,7 +37,7 @@ <div class="media mt-3"> <a t-attf-href="/customers/#{slug(partner)}" t-field="partner.image_128" - t-options='{"widget": "image", "class": "mr-3"}' + t-options='{"widget": "image", "class": "mr-3 o_image_128_max"}' ></a> <div class="media-body" style="min-height: 64px;"> <a t-attf-href="/customers/#{slug(partner)}"> @@ -218,7 +218,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" t-options='{"widget": "image", "class": "d-block mr-3"}'/> + <span t-field="reference.image_128" t-options='{"widget": "image", "class": "d-block mr-3 o_image_128_max"}'/> </a> <div class="media-body" style="min-height: 64px;"> <a t-attf-href="/customers/#{slug(reference)}"> |
