Skip to content

Commit d3c8ea3

Browse files
committed
Fix mobile menu covering page
Fixes #1352 Adjust the mobile menu height and z-index to prevent it from covering the entire page on mobile. * Adjust the height of the mobile menu to `calc(100vh-4rem)` to account for the footer height. * Update the z-index of the mobile menu to `z-10` to ensure it is placed above the fixed footer menu. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/w3bdesign/nuxtjs-woocommerce/issues/1352?shareId=XXXX-XXXX-XXXX-XXXX).
1 parent 830841d commit d3c8ea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/Layout/LayoutMobileMenu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="relative">
33
<div
44
v-if="!firstRender"
5-
class="fixed top-0 left-0 h-[100vh] w-screen mt-4 z-0 bg-white animate__animated"
5+
class="fixed top-0 left-0 h-[calc(100vh-4rem)] w-screen mt-4 z-10 bg-white animate__animated"
66
:class="{
77
animate__fadeInLeft: expandedMenu,
88
animate__fadeOutRight: !expandedMenu && !firstRender,

0 commit comments

Comments
 (0)