Skip to content

Commit

Permalink
Add some bottom offset to menu max-height to prevent iOS Safari from …
Browse files Browse the repository at this point in the history
…cutting off bottom of menu
  • Loading branch information
KaichenWang committed Feb 23, 2022
1 parent 544968b commit 2f854a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/component-mega-menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
border-radius: 0;
border-right: 0;
left: 0;
max-height: calc(var(--viewport-height, 100vh) - var(--header-bottom-position, 200px));
max-height: calc(var(--viewport-height, 100vh) - var(--header-bottom-position, 200px) - 4rem);
overflow-y: auto;
padding-bottom: 2.4rem;
padding-top: 2.4rem;
Expand Down

0 comments on commit 2f854a4

Please sign in to comment.