summaryrefslogtreecommitdiff
path: root/addons/website/static
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2020-09-15 08:52:58 +0000
committerqsm-odoo <qsm@odoo.com>2020-10-09 10:32:53 +0000
commit533a4db8efdf2b16f012e3c9253ae2abc88a344c (patch)
tree2197ff62bb24b9727510add6751f423c81df0306 /addons/website/static
parent05b55c11732d3ee06a266c3e11c0e7afc75bc3c8 (diff)
[FIX] website: solve long dropdown menu problems in navbar
Following [1]. The mentioned commit selectors were to be simplified and actually did not solve the problem in mobile affixed menu. Also, targeting "o_affix_enabled" to target the non-affix menu was wrong since when there is no affix menu, no header has the "o_affix_enabled" class as its names indicates it. So the mentioned commit fixed half of the problem and only when the website used the affix menu feature... Let's hope this new commit fixes everything. [1]: https://github.com/odoo/odoo/commit/21959599d1c25321865afabe7f70191efdda154e closes odoo/odoo#59597 X-original-commit: 1e3897d44a6454d1672d3e585e516381d77342c4 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/website/static')
-rw-r--r--addons/website/static/src/scss/website.scss15
1 files changed, 15 insertions, 0 deletions
diff --git a/addons/website/static/src/scss/website.scss b/addons/website/static/src/scss/website.scss
index c6036cb9564..4aaed3594a9 100644
--- a/addons/website/static/src/scss/website.scss
+++ b/addons/website/static/src/scss/website.scss
@@ -806,6 +806,21 @@ header {
}
}
+ // Dropdown menus
+
+ // In mobile there is no need to limit the height...
+ @include media-breakpoint-up(lg) {
+ .navbar .dropdown-menu {
+ max-height: 60vh;
+ overflow-y: auto;
+ }
+ }
+ // ... but we limit the navbar-collapse height
+ .navbar-collapse.show {
+ max-height: 80vh;
+ overflow-y: auto;
+ }
+
&:not(.o_header_is_scrolled) {
$-is-hamburger: o-website-value('header-template') == 'hamburger';
@include media-breakpoint-up(md) {