Revert "[IMP] web: use burger menu for tablet in vertical mode"
This reverts commit 4e5f826ce5
for two reasons:
1) A lot of people are working with splitted desktop screen and
will see the view switcher/search as on mobile: it's not efficient.
Only the burger menu should have been visible for the tablets,
not the other mobile features.
2) When you switch between vertical mode and H mode, we don't want
to change the mobile mode because widgets aren't reinstantiated and
some features don't work.
For example, the burger menu is broken if you switch from H mode to
V mode.
Task-1869468
This commit is contained in:
@@ -83,7 +83,7 @@ function _updateSizeProps() {
|
||||
var sc = _getSizeClass();
|
||||
if (sc !== config.device.size_class) {
|
||||
config.device.size_class = sc;
|
||||
config.device.isMobile = config.device.size_class <= config.device.SIZES.SM;
|
||||
config.device.isMobile = config.device.size_class <= config.device.SIZES.XS;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
@extend %dropdown-li-a-padding;
|
||||
color: $o-main-text-color;
|
||||
|
||||
@media (max-width: $screen-sm-max) {
|
||||
@media (max-width: $screen-xs-max) {
|
||||
color: white;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
font-weight: 500;
|
||||
line-height: $o-navbar-height;
|
||||
|
||||
@media (max-width: $screen-sm-max) {
|
||||
@media (max-width: $screen-xs-max) {
|
||||
float: none;
|
||||
margin: 0;
|
||||
border-bottom: 1px solid $o-navbar-inverse-link-hover-bg;
|
||||
@@ -148,7 +148,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: $screen-sm-max) {
|
||||
@media (max-width: $screen-xs-max) {
|
||||
@include o-transition(height, 200ms, linear);
|
||||
|
||||
position: relative;
|
||||
@@ -208,7 +208,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: $screen-sm-max) {
|
||||
@media (max-width: $screen-xs-max) {
|
||||
body.o_mobile_menu_opened {
|
||||
overflow: hidden;
|
||||
height: 100%;
|
||||
@@ -221,7 +221,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: $screen-sm-max) {
|
||||
@media (max-width: $screen-xs-max) {
|
||||
.o_switch_company_menu > .dropdown-menu {
|
||||
padding-top: 0px;
|
||||
li.bg-info {
|
||||
|
||||
Reference in New Issue
Block a user