
.o_main_navbar {
    .o_switch_company_menu {
        .dropdown-item {
            cursor: pointer;

            &:hover {
                background-color: white;
            }

            .o_py {
                padding-top: 0.2rem !important;            
                padding-bottom: 0.2rem !important;            
                
                &:hover {
                    background-color: #e9ecef !important;
                }
            }
        }
    }    
}


.o_main_navbar {
    .o_switch_company_menu {
        > a .oe_topbar_name {
            @include o-text-overflow($max-width: 250px);
        }
        .dropdown-item {
            cursor: pointer;

            &:hover {
                background-color: white;
            }

            .o_py {
                padding-top: 0.2rem !important;            
                padding-bottom: 0.2rem !important;            
                
                &:hover {
                    background-color: #e9ecef !important;
                }
            }
        }
    }    
}

Set a max width on company switcher menu
[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) <200a91eb0e5cc4726d6a3430713b580138f34298@odoo.com>
