From 501f3e9b458d16593a0120e07e431eb6281f2030 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Tue, 29 Aug 2017 11:19:25 +0200 Subject: [PATCH] [FIX] web: properly clear floats in kanban records Before the new design, floats in kanban records were cleared using the clearfix method. Now, the kanban color requires using the ::after element, making the clearfix method unavailable. Hopefully, forcing the creation of a block formatting context by forcing the display of kanban records to `inline-block` should do the trick without affecting the main layout. --- addons/web/static/src/less/kanban_view.less | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/src/less/kanban_view.less b/addons/web/static/src/less/kanban_view.less index 5b89d89330f..7646e070034 100644 --- a/addons/web/static/src/less/kanban_view.less +++ b/addons/web/static/src/less/kanban_view.less @@ -167,6 +167,7 @@ .o_kanban_record { position: relative; + display: inline-block; // Force the creation of a block formatting context to clear float items min-width: 150px; margin: 0 @o-kanban-record-margin -1px;