[FIX] website_crm_partner_assign: Partners images size.
Small fix on the template to ensure the size of the partners's images will never be larger than 128px. closes odoo/odoo#43875 X-original-commit: 4879ace6868e02703069bcf420bd77275ee381f7 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
This commit is contained in:
@@ -130,3 +130,8 @@ span.o_force_ltr {
|
||||
max-width: 64px;
|
||||
max-height: 64px;
|
||||
}
|
||||
|
||||
.o_image_128_max {
|
||||
max-width: 128px;
|
||||
max-height: 128px;
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
<div class="media mt-3">
|
||||
<a t-attf-href="/partners/#{slug(partner)}?#{current_grade and 'grade_id=%s&' % current_grade.id}#{current_country and 'country_id=%s' % current_country.id}"
|
||||
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 o_partner_body" style="min-height: 64px;">
|
||||
<a t-attf-href="/partners/#{slug(partner)}?#{current_grade and 'grade_id=%s&' % current_grade.id}#{current_country and 'country_id=%s' % current_country.id}">
|
||||
|
||||
Reference in New Issue
Block a user