diff --git a/app.vue b/app.vue index 0bf3ea41..5f498c48 100644 --- a/app.vue +++ b/app.vue @@ -15,6 +15,7 @@ const { isSearchOpen, isModalOpen, isWalletConnect, + isMobile, } = storeToRefs(useAppStore()) const { addProviderEvents, removeProviderEvents } = useBrowserExtensionProvider() @@ -223,7 +224,7 @@ useHead({ const bodyClass = [] // prevent window scroll when search modal is open - if (isSearchOpen.value || isModalOpen.value) { + if (isSearchOpen.value || (!isMobile.value && isModalOpen.value)) { bodyClass.push('!overflow-hidden') } diff --git a/components/AppModal.vue b/components/AppModal.vue index d5ac75de..c22c5d57 100644 --- a/components/AppModal.vue +++ b/components/AppModal.vue @@ -78,6 +78,7 @@ onUnmounted(() => { >