From 7cc34885a17eaaeaa54b1d11cb90577e5e7e08bd Mon Sep 17 00:00:00 2001 From: Hetal Dhanak Date: Tue, 30 Apr 2019 08:54:34 +0000 Subject: [PATCH] [FIX] project: correctly align buttons on project kanban MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, footer buttons on the project's kanban were not being shown properly due to improper CSS rules. This commit fixes the issue by removing fixed width and evenly distributing available space between the buttons. Task - 1948176 closes odoo/odoo#33039 Signed-off-by: Jérome Maes (jem) --- .../static/src/scss/project_dashboard.scss | 24 +++---------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/addons/project/static/src/scss/project_dashboard.scss b/addons/project/static/src/scss/project_dashboard.scss index 82e0134b3c9..5e0b0c7da39 100644 --- a/addons/project/static/src/scss/project_dashboard.scss +++ b/addons/project/static/src/scss/project_dashboard.scss @@ -1,25 +1,14 @@ .o_kanban_view.o_kanban_dashboard.o_project_kanban { .o_project_kanban_boxes { display: flex; - flex-flow: row nowrap; + flex-flow: row wrap; + justify-content: space-between; .o_project_kanban_box { position: relative; text-align: center; padding: 0 0 0 0; - width: 33.33%; - - &:last-child { - text-align: right; - } - - &:nth-child(2){ - width: 66.66%; - } - - &:first-child { - text-align: left; - } + margin: 0 5px; .o_value { font-weight: 800; @@ -45,13 +34,6 @@ } } } - .o_project_timesheet_box{ - position: relative; - padding: 0 0 0 0; - /* The important are here to assure this class is display in the center */ - width: 33.33% !important; - text-align: center !important; - } } }