diff --git a/apps/web/ui/modals/add-edit-domain-modal.tsx b/apps/web/ui/modals/add-edit-domain-modal.tsx index 5daaf4b4de..f3cb421f13 100644 --- a/apps/web/ui/modals/add-edit-domain-modal.tsx +++ b/apps/web/ui/modals/add-edit-domain-modal.tsx @@ -36,7 +36,7 @@ function AddEditDomainModal({
{logo ? ( diff --git a/apps/web/ui/modals/add-edit-token-modal.tsx b/apps/web/ui/modals/add-edit-token-modal.tsx index c31274782c..005d45dce1 100644 --- a/apps/web/ui/modals/add-edit-token-modal.tsx +++ b/apps/web/ui/modals/add-edit-token-modal.tsx @@ -146,7 +146,7 @@ function AddEditTokenModal({
{logo ? ( diff --git a/apps/web/ui/modals/import-csv-modal/index.tsx b/apps/web/ui/modals/import-csv-modal/index.tsx index 7630b214d8..7f03d9f0ff 100644 --- a/apps/web/ui/modals/import-csv-modal/index.tsx +++ b/apps/web/ui/modals/import-csv-modal/index.tsx @@ -135,12 +135,12 @@ function ImportCsvModal({ queryParams({ del: "import", }) } - className="h-fit max-h-[95dvh] max-w-lg overflow-y-auto" >
diff --git a/apps/web/ui/modals/invite-teammate-modal.tsx b/apps/web/ui/modals/invite-teammate-modal.tsx index 5537ad4dd1..e8441e69db 100644 --- a/apps/web/ui/modals/invite-teammate-modal.tsx +++ b/apps/web/ui/modals/invite-teammate-modal.tsx @@ -39,45 +39,44 @@ function InviteTeammateModal({ -
-
- {logo ? ( - - ) : ( - - )} -

Invite Teammates

-

- Invite teammates with{" "} - - different roles and permissions - - . Invitations will be valid for 14 days. -

-
- {isLoading ? ( -
- -
- ) : ( - setShowInviteTeammateModal(false)} - className="bg-gray-50 px-4 py-8 sm:px-16" - invites={invites} +
+ {logo ? ( + + ) : ( + )} +

Invite Teammates

+

+ Invite teammates with{" "} + + different roles and permissions + + . Invitations will be valid for 14 days. +

+ {isLoading ? ( +
+ +
+ ) : ( + setShowInviteTeammateModal(false)} + className="bg-gray-50 px-4 py-8 sm:px-16" + invites={invites} + /> + )} ); } diff --git a/apps/web/ui/modals/send-test-webhook-modal.tsx b/apps/web/ui/modals/send-test-webhook-modal.tsx index 6d2b05bba9..6f2b4b552a 100644 --- a/apps/web/ui/modals/send-test-webhook-modal.tsx +++ b/apps/web/ui/modals/send-test-webhook-modal.tsx @@ -53,7 +53,6 @@ function SendTestWebhookModal({
diff --git a/apps/web/ui/modals/transfer-domain-modal.tsx b/apps/web/ui/modals/transfer-domain-modal.tsx index 94e7bafa9b..1f78c39519 100644 --- a/apps/web/ui/modals/transfer-domain-modal.tsx +++ b/apps/web/ui/modals/transfer-domain-modal.tsx @@ -67,7 +67,6 @@ function TransferDomainModal({
{ diff --git a/apps/web/ui/modals/transfer-link-modal.tsx b/apps/web/ui/modals/transfer-link-modal.tsx index 32554b6e71..789fd05b79 100644 --- a/apps/web/ui/modals/transfer-link-modal.tsx +++ b/apps/web/ui/modals/transfer-link-modal.tsx @@ -36,7 +36,6 @@ function TransferLinkModal(props: TransferLinkModalProps) { diff --git a/packages/ui/src/modal.tsx b/packages/ui/src/modal.tsx index 313999f284..f4869fa8c9 100644 --- a/packages/ui/src/modal.tsx +++ b/packages/ui/src/modal.tsx @@ -61,18 +61,19 @@ export function Modal({ - - Modal - This is a modal - -
-
+
+ + Modal + This is a modal + + + {children}
- {children} @@ -99,7 +100,9 @@ export function Modal({ onOpenAutoFocus={(e) => e.preventDefault()} onCloseAutoFocus={(e) => e.preventDefault()} className={cn( - "animate-scale-in fixed inset-0 z-40 m-auto max-h-fit w-full max-w-md overflow-hidden border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl", + "fixed inset-0 z-40 m-auto h-fit w-full max-w-md", + "border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl", + "scrollbar-hide animate-scale-in overflow-y-auto", className, )} > @@ -113,3 +116,11 @@ export function Modal({ ); } + +function DrawerIsland() { + return ( +
+
+
+ ); +}