From 787725e0545db59e3a71ef75a92eb84ea2f6c274 Mon Sep 17 00:00:00 2001 From: mano-odoo Date: Thu, 19 Oct 2023 11:10:35 +0200 Subject: [PATCH] [FIX] web: kanban_card border top In commit `2495bfa7259dcbd482b10c95a55313f86d594fcb` we introduce a fix to adapt the kanban_card border using the border bottom of the prior kanban_card as a border top allowing to display the outline effect. This fix works for o_kanban_grouped but breaks the border in views that are o_kanban_ungrouped. This commit fixes this by removing the border-top only in the o_kanban_record that are o_kanban_grouped. The :not(o_dragged) has been added as well to bring back the border when the element is dragged. task-3488451 closes odoo/odoo#139453 X-original-commit: 2be67ee122546273d12710c1c9bc3b7e11533b5d Signed-off-by: Pierre Paridans (app) --- addons/web/static/src/views/kanban/kanban_controller.scss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/web/static/src/views/kanban/kanban_controller.scss b/addons/web/static/src/views/kanban/kanban_controller.scss index 330d5001321..3ceaeeeba60 100644 --- a/addons/web/static/src/views/kanban/kanban_controller.scss +++ b/addons/web/static/src/views/kanban/kanban_controller.scss @@ -78,10 +78,6 @@ position: relative; min-width: 150px; - & ~ .o_kanban_record .oe_kanban_card { - border-top: none; - } - > div:not(.o_dropdown_kanban) { padding: var(--KanbanRecord-padding-v) var(--KanbanRecord-padding-h); width: 100%; @@ -488,6 +484,10 @@ .o_kanban_record { width: 100%; + + & + .o_kanban_record:not(.o_dragged) .oe_kanban_card { + border-top: none; + } } .o_kanban_group {