summaryrefslogtreecommitdiff
path: root/addons/website/static
diff options
context:
space:
mode:
authorBenjamin Vray <bvr@odoo.com>2020-10-14 13:15:11 +0000
committerqsm-odoo <qsm@odoo.com>2020-10-16 13:18:20 +0000
commit8a889277d8fa0af8498964e264c781424f79e3d8 (patch)
treedcdc345cead0c0830f9422c2271f01e2f11fe8a6 /addons/website/static
parent180099b3ddb78511930f48dc012d1856c3b2a03b (diff)
[FIX] website: hide horizontal scrollbar in hamburger menu
Before this commit, when a vertical scrollbar appeared in the collapse navbar menu, the horizontal scrollbar also appeared. We added overflow-x hidden on navbar and navbar-collapse for never again display this horizontal scrollbar. task-2312878 closes odoo/odoo#59999 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/website/static')
-rw-r--r--addons/website/static/src/scss/website.scss2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/website/static/src/scss/website.scss b/addons/website/static/src/scss/website.scss
index c5c3cc966a7..7d2c143c5f1 100644
--- a/addons/website/static/src/scss/website.scss
+++ b/addons/website/static/src/scss/website.scss
@@ -817,12 +817,14 @@ header {
.navbar .dropdown-menu {
max-height: 60vh;
overflow-y: auto;
+ overflow-x: hidden; // Needed because of container in container having 0px padding... TODO improve
}
}
// ... but we limit the navbar-collapse height
.navbar-collapse.show {
max-height: 80vh;
overflow-y: auto;
+ overflow-x: hidden; // Needed because of container in container having 0px padding... TODO improve
}
&:not(.o_header_is_scrolled) {