diff options
| author | Hardik Prajapati <hpr@odoo.com> | 2020-01-23 12:04:07 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2020-01-24 11:45:42 +0000 |
| commit | dd5f793beaf8a1f8e821bff6c70e7548c19e1721 (patch) | |
| tree | a53b4ec55901d2f4b9327bc34e41c63749927982 /addons | |
| parent | bd2bbb27fe83ab082fe04374de0fb45c5750488f (diff) | |
[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) <yti@odoo.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/web/static/src/scss/switch_company_menu.scss | 3 |
1 files changed, 3 insertions, 0 deletions
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; |
