From a01a6822dda9b29552e4f773a23dc4fa3cff90ad Mon Sep 17 00:00:00 2001 From: Elisabeth Dickinson Date: Mon, 27 Nov 2023 09:52:01 +0100 Subject: [PATCH] [FIX] web: fix `oe_stat_button` dropdown width and button alignment In the stat buttons' dropdown under "More", if the text is too long a horizontal scroll appears. Fixed by removing the fixed `width` and the `w-100` class on the dropdown box. Because of `height: 100%` which is needed for the button to be aligned with the other buttons, the contents of the dropdown button are not centered. Fixed with a `d-flex` and `align-items-center`. task-3573807 Part-of: odoo/odoo#141163 --- addons/web/static/src/views/form/button_box/button_box.scss | 1 - addons/web/static/src/views/form/button_box/button_box.xml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/web/static/src/views/form/button_box/button_box.scss b/addons/web/static/src/views/form/button_box/button_box.scss index f1a509dea2b..0c887cf7950 100644 --- a/addons/web/static/src/views/form/button_box/button_box.scss +++ b/addons/web/static/src/views/form/button_box/button_box.scss @@ -138,7 +138,6 @@ } .o_dropdown_more { - width: 150px; .oe_stat_button { height: auto; diff --git a/addons/web/static/src/views/form/button_box/button_box.xml b/addons/web/static/src/views/form/button_box/button_box.xml index eee77a02356..0bb15b230da 100644 --- a/addons/web/static/src/views/form/button_box/button_box.xml +++ b/addons/web/static/src/views/form/button_box/button_box.xml @@ -8,7 +8,7 @@
- + More