[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) <app@odoo.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user