chore: fix modal on mobile
This commit is contained in:
@@ -16,13 +16,14 @@ const AlertDialog = ({
|
|||||||
return (
|
return (
|
||||||
<Dialog store={dialog} role="alertdialog" className="h-full w-full" backdropProps={{ className: '!z-modal' }}>
|
<Dialog store={dialog} role="alertdialog" className="h-full w-full" backdropProps={{ className: '!z-modal' }}>
|
||||||
<div
|
<div
|
||||||
className="absolute z-0 h-full w-full bg-passive-5 opacity-0 md:opacity-75"
|
className="absolute z-0 h-full w-full bg-passive-5 opacity-25 md:opacity-75"
|
||||||
role="presentation"
|
role="presentation"
|
||||||
onClick={closeDialog}
|
onClick={closeDialog}
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
className={classNames(
|
className={classNames(
|
||||||
'absolute top-1/2 left-1/2 z-[1] max-w-[600px] -translate-x-1/2 -translate-y-1/2 rounded border border-border bg-default px-6 py-5 shadow-xl',
|
'absolute top-1/2 left-1/2 z-[1] -translate-x-1/2 -translate-y-1/2 rounded border border-border bg-default px-6 py-5 shadow-xl',
|
||||||
|
!className?.includes('max-w-') && 'max-w-[600px]',
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ const PremiumFeaturesModal: FunctionComponent<Props> = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<AlertDialog closeDialog={onClose} className="!max-w-89">
|
<AlertDialog closeDialog={onClose} className="w-full max-w-[90vw] md:max-w-89">
|
||||||
<div tabIndex={-1} className="sn-component bg-default">
|
<div tabIndex={-1} className="sn-component bg-default">
|
||||||
<div tabIndex={0}>
|
<div tabIndex={0}>
|
||||||
{type === PremiumFeatureModalType.UpgradePrompt && (
|
{type === PremiumFeatureModalType.UpgradePrompt && (
|
||||||
|
|||||||
Reference in New Issue
Block a user