refactor: remove reliance on viewport height in favor of body (#1926)
This commit is contained in:
@@ -58,7 +58,7 @@ const PositionedPopoverContent = ({
|
||||
if (popoverElement) {
|
||||
setTimeout(() => {
|
||||
popoverElement.scrollTop = 0
|
||||
})
|
||||
}, 10)
|
||||
}
|
||||
}, [popoverElement])
|
||||
|
||||
@@ -70,7 +70,8 @@ const PositionedPopoverContent = ({
|
||||
<Portal>
|
||||
<div
|
||||
className={classNames(
|
||||
'absolute top-0 left-0 flex h-screen w-full min-w-80 cursor-auto flex-col overflow-y-auto rounded bg-default shadow-main md:h-auto md:max-w-xs',
|
||||
'absolute top-0 left-0 flex h-full w-full min-w-80 cursor-auto flex-col',
|
||||
'overflow-y-auto rounded bg-default shadow-main md:h-auto md:max-w-xs',
|
||||
overrideZIndex ? overrideZIndex : 'z-dropdown-menu',
|
||||
!isDesktopScreen ? 'pt-safe-top pb-safe-bottom' : '',
|
||||
!styles && 'md:invisible',
|
||||
|
||||
Reference in New Issue
Block a user