chore: show Super demo modal if user doesn't have subscription when switching editor to Super

This commit is contained in:
Aman Harwara
2023-12-22 16:40:42 +05:30
committed by GitHub
parent 485339be86
commit 29b7e989a6
26 changed files with 482 additions and 119 deletions

View File

@@ -6,7 +6,7 @@ export const getAdjustedStylesForNonPortalPopover = (
styles: PopoverCSSProperties,
parent?: HTMLElement,
) => {
const absoluteParent = parent || getAbsolutePositionedParent(popoverElement)
const absoluteParent = parent || getAbsolutePositionedParent(popoverElement) || popoverElement.parentElement
const translateXProperty = styles?.['--translate-x']
const translateYProperty = styles?.['--translate-y']