From 72785de2d4d12b80ee4e9173128e1dd6c6fd2cf7 Mon Sep 17 00:00:00 2001 From: "Chrysanthe (chgo)" Date: Mon, 27 Nov 2023 14:08:33 +0100 Subject: [PATCH] [FIX] account: fix searchpanel width issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit fixes an issue about the search panel content being cut in some accounting interfaces. This is due to the fact that the searchpanel with a specific class would get an arbitrary width value in px. To avoid this issue, we set a `w-auto` to the searchpanel, allowing it to adapt its width to its content. task-3560617 closes odoo/odoo#161382 X-original-commit: f90339c0c6fc27bab7e21d2e78bec043f6327146 Signed-off-by: Brice Bartoletti (bib) Signed-off-by: Chrysanthe Gomrée (chgo) --- addons/account/static/src/scss/account_searchpanel.scss | 1 - addons/account/views/account_account_views.xml | 2 +- addons/account/views/account_move_views.xml | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/account/static/src/scss/account_searchpanel.scss b/addons/account/static/src/scss/account_searchpanel.scss index 78910fc2130..3167f542bf0 100644 --- a/addons/account/static/src/scss/account_searchpanel.scss +++ b/addons/account/static/src/scss/account_searchpanel.scss @@ -1,5 +1,4 @@ .o_search_panel.account_root { - flex: 0 0 54px; padding: 6px !important; // need to override bootstrap ps-4 rule scrollbar-width: thin; .o_search_panel_section_header { diff --git a/addons/account/views/account_account_views.xml b/addons/account/views/account_account_views.xml index b636ac3d36b..c72a465512e 100644 --- a/addons/account/views/account_account_views.xml +++ b/addons/account/views/account_account_views.xml @@ -157,7 +157,7 @@ -