From dd5f793beaf8a1f8e821bff6c70e7548c19e1721 Mon Sep 17 00:00:00 2001 From: Hardik Prajapati Date: Thu, 23 Jan 2020 12:04:07 +0000 Subject: [PATCH] [IMP] web: Set a max width on company switcher menu Purpose: There is no max width on the company name of the 'switch company menu' of the systray (o_switch_company_menu). On smaller screens, and when in debug mode, it quickly either linebreaks the systray of crops the menu items. So set the max width and text ellipsis on menu. task-1985500 closes odoo/odoo#43847 Closes: #43847 Signed-off-by: Yannick Tivisse (yti) --- addons/web/static/src/scss/switch_company_menu.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/web/static/src/scss/switch_company_menu.scss b/addons/web/static/src/scss/switch_company_menu.scss index eb990752622..6bc4fa4d5f6 100644 --- a/addons/web/static/src/scss/switch_company_menu.scss +++ b/addons/web/static/src/scss/switch_company_menu.scss @@ -1,6 +1,9 @@ .o_main_navbar { .o_switch_company_menu { + > a .oe_topbar_name { + @include o-text-overflow($max-width: 250px); + } .dropdown-item { cursor: pointer;