fix: modals regression (#10211)
Signed-off-by: Udit Takkar <[email protected]>
This commit is contained in:
1 parent
6dfc19247e
commit
47add7e7fc
3 files changed
+10
-9
No files matched your search
@@ -65,7 +65,7 @@ export function ConfirmationDialogContent(props: PropsWithChildren<ConfirmationD
|
||||
</DialogPrimitive.Description>
|
||||
</div>
|
||||
</div>
|
||||
<div className="mt-5 flex flex-row-reverse gap-x-2 sm:mt-8">
|
||||
<div className="my-5 flex flex-row-reverse gap-x-2 sm:my-8">
|
||||
{confirmBtn ? (
|
||||
confirmBtn
|
||||
) : (
|
||||
|
||||
@@ -77,14 +77,14 @@ export const DialogContent = React.forwardRef<HTMLDivElement, DialogContentProps
|
||||
<DialogPrimitive.Content
|
||||
{...props}
|
||||
className={classNames(
|
||||
"fadeIn bg-default scroll-bar fixed left-1/2 top-1/2 z-50 w-full max-w-[22rem] -translate-x-1/2 -translate-y-1/2 rounded-md px-8 pb-0 pt-8 text-left shadow-xl focus-visible:outline-none sm:align-middle",
|
||||
"fadeIn bg-default scroll-bar fixed left-1/2 top-1/2 z-50 w-full max-w-[22rem] -translate-x-1/2 -translate-y-1/2 rounded-md text-left shadow-xl focus-visible:outline-none sm:align-middle",
|
||||
props.size == "xl"
|
||||
? "sm:max-w-[90rem]"
|
||||
? "px-8 pt-8 sm:max-w-[90rem]"
|
||||
: props.size == "lg"
|
||||
? "sm:max-w-[70rem]"
|
||||
? "px-8 pt-8 sm:max-w-[70rem]"
|
||||
: props.size == "md"
|
||||
? "sm:max-w-[48rem]"
|
||||
: "sm:max-w-[35rem]",
|
||||
? "px-8 pt-8 sm:max-w-[48rem]"
|
||||
: "px-8 pt-8 sm:max-w-[35rem]",
|
||||
"max-h-[95vh]",
|
||||
enableOverflow ? "overflow-auto" : "overflow-visible",
|
||||
`${props.className || ""}`
|
||||
@@ -148,7 +148,7 @@ export function DialogFooter(props: {
|
||||
<div
|
||||
className={classNames(
|
||||
"flex justify-end space-x-2 pb-4 pt-4 rtl:space-x-reverse",
|
||||
props.showDivider && "-mb-4"
|
||||
!props.showDivider && "pb-8"
|
||||
)}>
|
||||
{props.children}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user