[FIX] web: control_panel view switcher wrap

Before this commit, when the view switcher contained too many elements
(e.g.: CRM), in desktop mode but with a relatively small screen size
(i.e.: width ~< 1300px), the buttons of the view switcher went outside of the screen.

After this commit, the whole view switcher block is rejected on a new line.

closes odoo/odoo#78135

X-original-commit: dabc7b903340922557645c69df5858ca3360cc59
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
Lucas Perais (lpe)
2021-10-11 10:16:08 +00:00
parent b2325c1b7e
commit 5db9518ee9
@@ -69,6 +69,9 @@
.o_cp_bottom_right {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
column-gap: $o-horizontal-padding;
> .o_cp_pager {
margin: auto 0 auto auto;
@@ -87,12 +90,6 @@
}
> .o_cp_switch_buttons {
> .btn:first-child {
margin-left: $o-horizontal-padding;
@include media-breakpoint-down(sm) {
margin-left: 0;
}
}
.dropdown-menu {
right: 0;
}