Skip to content

Commit

Permalink
#8: Can't scroll all the way down on long hamburger navigation on mob…
Browse files Browse the repository at this point in the history
…ile view
  • Loading branch information
nelsonamaya82 committed Feb 8, 2024
1 parent bbe2eee commit 5e98626
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion asset/css/style.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions asset/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ const freedomScripts = () => {
if(scrollPos > 60 && scrollDirection == 'down') {
mainHeader.style.top = - (userBarHeight + mainHeaderTopBar.offsetHeight) + 'px';
menuDrawer.style.top = mainHeaderMainBar.offsetHeight + 'px';
menuDrawer.style.height = 'calc(100% - ' + mainHeaderMainBar.offsetHeight + 'px)';
} else {
mainHeader.style.top = 0;
menuDrawer.style.top = mainHeader.offsetHeight + 'px';
menuDrawer.style.height = 'calc(100% - ' + mainHeader.offsetHeight + 'px)';
}
}

Expand Down
1 change: 1 addition & 0 deletions asset/sass/components/navigation/_menu-drawer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
list-style: none;
margin-left: 0;
padding-left: 0;
padding-bottom: 20px;
}

li {
Expand Down

0 comments on commit 5e98626

Please sign in to comment.