chore: fix challenge modal height issues on iOS

This commit is contained in:
Aman Harwara
2023-08-22 16:48:25 +05:30
parent 6f1d171149
commit 0275a3b988
2 changed files with 2 additions and 1 deletions

View File

@@ -57,6 +57,7 @@ const ModalOverlay = forwardRef(
const div = document.createElement('div')
div.id = id
div.className = 'fixed flex items-center justify-center left-0 top-0 z-modal h-full w-full pointer-events-none'
div.setAttribute('data-dialog-portal', '')
document.body.appendChild(div)
return div
}, [portalId])

View File

@@ -151,7 +151,7 @@
}
[data-mobile-popover],
[role='dialog'] {
[data-dialog-portal] {
max-height: none;
max-height: var(--ios-viewport-height, none);
}