From 5db9518ee9acfd1667506323f2b72ba84976e97c Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Fri, 8 Oct 2021 09:24:00 +0000 Subject: [PATCH] [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) --- .../static/src/search/control_panel/control_panel.scss | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/addons/web/static/src/search/control_panel/control_panel.scss b/addons/web/static/src/search/control_panel/control_panel.scss index c91b7dfdcdf..00b862245e9 100644 --- a/addons/web/static/src/search/control_panel/control_panel.scss +++ b/addons/web/static/src/search/control_panel/control_panel.scss @@ -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; }