From 5754d061048868541b22870d198479b70cbccfdc Mon Sep 17 00:00:00 2001 From: "Chrysanthe (chgo)" Date: Wed, 17 May 2023 13:56:19 +0000 Subject: [PATCH] [FIX] hr_expense, web: fix CP buttons spacing === ISSUE === If you open the `Expenses` module, the buttons placed on the left inside the Control Panel have a custom margin. One of them has a `.mx-1` and another one has a custom `.gap` defined in the SCSS files. === AFTER === We remove the `.mx-1` class to replace it with a `.me-1` class, which is used across Control Panels to space buttons. We also fix a global issue with the `.o_list_buttons` inside a `.o_list_view` class, which was adding a gap defined in CSS. Since this gap is added on top of our `.me-1`, this was generating a higher value than expected for the margin. task-3330141 part of task-332626 closes odoo/odoo#122986 X-original-commit: a1d697cc32ef4f94a4a7a89c3b442f58ddb8ecea Signed-off-by: Pierre Paridans (app) --- addons/hr_expense/static/src/views/kanban.xml | 4 ++-- addons/hr_expense/static/src/views/list.xml | 2 +- addons/web/static/src/views/list/list_renderer.scss | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/addons/hr_expense/static/src/views/kanban.xml b/addons/hr_expense/static/src/views/kanban.xml index adafb2ddfe2..79e451044ba 100644 --- a/addons/hr_expense/static/src/views/kanban.xml +++ b/addons/hr_expense/static/src/views/kanban.xml @@ -20,10 +20,10 @@ - - diff --git a/addons/hr_expense/static/src/views/list.xml b/addons/hr_expense/static/src/views/list.xml index b97e77bfdbc..9cd71d63402 100644 --- a/addons/hr_expense/static/src/views/list.xml +++ b/addons/hr_expense/static/src/views/list.xml @@ -5,7 +5,7 @@ -