From 4d38d04d81243dbbebcd3124acf2e8d7de493528 Mon Sep 17 00:00:00 2001 From: wan Date: Thu, 12 Sep 2019 09:29:01 +0000 Subject: [PATCH] [FIX] account: width of scrollbar in account searchpanel When there is a lot of data to be displayed in the searchpanel, the scrollbar appears. The with of the scrollbar takes too much space compared to the width of the custom searchpanel. This commit reduces the size for Chrome and Firefox >= 64 closes odoo/odoo#36758 Signed-off-by: Cedric Snauwaert (csn) --- addons/account/static/src/scss/account_searchpanel.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/addons/account/static/src/scss/account_searchpanel.scss b/addons/account/static/src/scss/account_searchpanel.scss index affa8898732..284b916108f 100644 --- a/addons/account/static/src/scss/account_searchpanel.scss +++ b/addons/account/static/src/scss/account_searchpanel.scss @@ -1,6 +1,7 @@ .o_search_panel.account_root { flex: 0 0 48px; padding: 6px; + scrollbar-width: thin; .o_search_panel_section_header { display: none; } @@ -11,4 +12,10 @@ margin-left: 0; padding-left: 0; } + &::-webkit-scrollbar { + width: 4px; + } + &::-webkit-scrollbar-thumb { + background: lightgray; + } }