diff options
| author | Hiral Bhavsar <hbh@odoo.com> | 2018-08-13 18:21:40 +0530 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2018-09-13 17:49:36 +0200 |
| commit | 3ee4390bff5f9a34606c43aea8ced5b759b7f109 (patch) | |
| tree | 551ec613fc1cba4108dd5a53fc42801e9ab2df19 /addons/web/static/src/js/services | |
| parent | 618c89fd87f877732e96a1bbc5026a6ac0862ff7 (diff) | |
[FIX] web: correct mobile screen size.
Revision on https://github.com/odoo/odoo/commit/d91ec258e6a31153beb9eb16cfe8f916546b7688
The commit above reverts a commit when we were using bootstrap 3.
The equivalent of XS in bootstrap 3 is SM in bootstrap 4.
So the correct revert with bootstrap 4 is to use SM.
Also removing useless style on 'o_mobile_menu_opened'.
Closes #26434
Diffstat (limited to 'addons/web/static/src/js/services')
| -rw-r--r-- | addons/web/static/src/js/services/config.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/services/config.js b/addons/web/static/src/js/services/config.js index 8b18e469d36..60a3dea28d4 100644 --- a/addons/web/static/src/js/services/config.js +++ b/addons/web/static/src/js/services/config.js @@ -84,7 +84,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.XS; + config.device.isMobile = config.device.size_class <= config.device.SIZES.SM; } } |
