From 4843965757af132e9b4a1e5c58a65ca686bfbe6d Mon Sep 17 00:00:00 2001 From: Lucas Perais Date: Mon, 26 Feb 2024 11:06:14 +0100 Subject: [PATCH] [FIX] web: kanban images background crop On the contact kanban view, add as much tags as possible. The point is to make the right hand part of the kanban card as tall as possible. Before this commit, the image (on the left hand side) of the individual partner was taking all the space in the y-axis, which was on purpose, but the cropping of the image made it so that the image lost is sense: a face was too much cropped, or, if the image did not have sufficient pixel density, it was pixelized. What is specific to 17 that is barely applicable in earlier versions, is the changes in the display of many2many tags in the kanban record: they now take more space and at a faster pace. After this commit, we constrain that image to a maximum height and centering it. opw-3748585 opw-3751016 closes odoo/odoo#155359 Signed-off-by: Pierre Paridans (app) --- addons/web/static/src/views/kanban/kanban_controller.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/web/static/src/views/kanban/kanban_controller.scss b/addons/web/static/src/views/kanban/kanban_controller.scss index d9a0663eab4..214fff5625c 100644 --- a/addons/web/static/src/views/kanban/kanban_controller.scss +++ b/addons/web/static/src/views/kanban/kanban_controller.scss @@ -214,6 +214,11 @@ left: 0; } + &:not(.o_kanban_image_full) { + max-height: 140px; + height: calc(100% + var(--KanbanRecord-padding-v) * 2); + align-self: center; + } &.o_kanban_image_full { background-size: contain; > img {