The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix modal overflow
Steven Tey873d867e1d18
diff --git a/apps/web/ui/modals/accept-invite-modal.tsx b/apps/web/ui/modals/accept-invite-modal.tsxindex 9016129144..755af8c72e 100644--- a/apps/web/ui/modals/accept-invite-modal.tsx+++ b/apps/web/ui/modals/accept-invite-modal.tsx@@ -44,7 +44,7 @@ function AcceptInviteModal({project on {process.env.NEXT_PUBLIC_APP_NAME}</p></div>- <div className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:rounded-b-2xl sm:px-16">+ <div className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:px-16"><buttononClick={() => {setAccepting(true);@@ -84,7 +84,7 @@ function AcceptInviteModal({This invite has expired or is no longer valid.</p></div>- <div className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:rounded-b-2xl sm:px-16">+ <div className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:px-16"><Linkhref="/"className="flex h-10 w-full items-center justify-center rounded-md border border-black bg-black text-sm text-white transition-all hover:bg-white hover:text-black focus:outline-none"diff --git a/apps/web/ui/modals/add-edit-domain-modal/index.tsx b/apps/web/ui/modals/add-edit-domain-modal/index.tsxindex d7e5e8790d..fba5209b30 100644--- a/apps/web/ui/modals/add-edit-domain-modal/index.tsx+++ b/apps/web/ui/modals/add-edit-domain-modal/index.tsx@@ -172,7 +172,7 @@ function AddEditDomainModal({setSaving(false);});}}- className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:rounded-b-2xl sm:px-16"+ className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:px-16"><div><div className="flex items-center justify-between">diff --git a/apps/web/ui/modals/add-edit-link-modal/index.tsx b/apps/web/ui/modals/add-edit-link-modal/index.tsxindex ab89592c32..4d7ac9fbd1 100644--- a/apps/web/ui/modals/add-edit-link-modal/index.tsx+++ b/apps/web/ui/modals/add-edit-link-modal/index.tsx@@ -584,7 +584,7 @@ function AddEditLinkModal({<divclassName={`${atBottom ? "" : "md:shadow-[0_-20px_30px_-10px_rgba(0,0,0,0.1)]"- } z-10 bg-gray-50 px-4 py-8 transition-all sm:rounded-b-2xl md:sticky md:bottom-0 md:px-16`}+ } z-10 bg-gray-50 px-4 py-8 transition-all md:sticky md:bottom-0 md:px-16`}>{homepageDemo ? (<Buttondiff --git a/apps/web/ui/modals/add-project-modal.tsx b/apps/web/ui/modals/add-project-modal.tsxindex f249b124d6..37010bc4bf 100644--- a/apps/web/ui/modals/add-project-modal.tsx+++ b/apps/web/ui/modals/add-project-modal.tsx@@ -158,7 +158,7 @@ function AddProjectModalHelper({setSaving(false);});}}- className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:rounded-b-2xl sm:px-16"+ className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:px-16"><div><label htmlFor="name" className="flex items-center space-x-2">diff --git a/apps/web/ui/modals/archive-link-modal.tsx b/apps/web/ui/modals/archive-link-modal.tsxindex df8d619392..37cfc4c889 100644--- a/apps/web/ui/modals/archive-link-modal.tsx+++ b/apps/web/ui/modals/archive-link-modal.tsx@@ -115,7 +115,7 @@ function ArchiveLinkModal({</p></div>- <div className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:rounded-b-2xl sm:px-16">+ <div className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:px-16"><ButtononClick={handleArchiveRequest}autoFocusdiff --git a/apps/web/ui/modals/complete-setup-modal.tsx b/apps/web/ui/modals/complete-setup-modal.tsxindex 0c8890f96a..bb2b1eeaf8 100644--- a/apps/web/ui/modals/complete-setup-modal.tsx+++ b/apps/web/ui/modals/complete-setup-modal.tsx@@ -63,7 +63,7 @@ function CompleteSetupModal({links.</p></div>- <div className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:rounded-b-2xl sm:px-12">+ <div className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:px-12"><div className="grid divide-y divide-gray-200 rounded-lg border border-gray-200 bg-white">{tasks.map(({ display, cta, checked }) => {const contents = (diff --git a/apps/web/ui/modals/delete-account-modal.tsx b/apps/web/ui/modals/delete-account-modal.tsxindex f9793c1dea..cba0e4b498 100644--- a/apps/web/ui/modals/delete-account-modal.tsx+++ b/apps/web/ui/modals/delete-account-modal.tsx@@ -69,7 +69,7 @@ function DeleteAccountModal({error: (err) => err,});}}- className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:rounded-b-2xl sm:px-16"+ className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:px-16"><div><label htmlFor="verification" className="block text-sm text-gray-700">diff --git a/apps/web/ui/modals/delete-link-modal.tsx b/apps/web/ui/modals/delete-link-modal.tsxindex e8a161f475..019fc8f60c 100644--- a/apps/web/ui/modals/delete-link-modal.tsx+++ b/apps/web/ui/modals/delete-link-modal.tsx@@ -85,7 +85,7 @@ function DeleteLinkModal({setDeleting(false);});}}- className="flex flex-col space-y-3 bg-gray-50 px-4 py-8 text-left sm:rounded-b-2xl sm:px-16"+ className="flex flex-col space-y-3 bg-gray-50 px-4 py-8 text-left sm:px-16"><div><label htmlFor="verification" className="block text-sm text-gray-700">diff --git a/apps/web/ui/modals/delete-token-modal.tsx b/apps/web/ui/modals/delete-token-modal.tsxindex 77950c10d8..fdff8bf4f5 100644--- a/apps/web/ui/modals/delete-token-modal.tsx+++ b/apps/web/ui/modals/delete-token-modal.tsx@@ -45,7 +45,7 @@ function DeleteTokenModal({</p></div>- <div className="flex flex-col space-y-4 bg-gray-50 px-4 py-8 text-left sm:rounded-b-2xl sm:px-16">+ <div className="flex flex-col space-y-4 bg-gray-50 px-4 py-8 text-left sm:px-16"><div className="relative flex items-center space-x-3 rounded-md border border-gray-300 bg-white px-1 py-3"><Badge variant="neutral" className="absolute right-2 top-2">{token.partialKey}diff --git a/apps/web/ui/modals/edit-role-modal.tsx b/apps/web/ui/modals/edit-role-modal.tsxindex 95f9f419a8..725e44cd7c 100644--- a/apps/web/ui/modals/edit-role-modal.tsx+++ b/apps/web/ui/modals/edit-role-modal.tsx@@ -51,7 +51,7 @@ function EditRoleModal({</p></div>- <div className="flex flex-col space-y-4 bg-gray-50 px-4 py-8 text-left sm:rounded-b-2xl sm:px-16">+ <div className="flex flex-col space-y-4 bg-gray-50 px-4 py-8 text-left sm:px-16"><div className="flex items-center space-x-3 rounded-md border border-gray-300 bg-white p-3"><Avatar user={user} /><div className="flex flex-col">diff --git a/apps/web/ui/modals/google-oauth-modal.tsx b/apps/web/ui/modals/google-oauth-modal.tsxindex a3e9b039f0..061abd4abd 100644--- a/apps/web/ui/modals/google-oauth-modal.tsx+++ b/apps/web/ui/modals/google-oauth-modal.tsx@@ -40,7 +40,7 @@ function GoogleOauthModal({</a></p></div>- <div className="flex flex-col space-y-3 bg-gray-50 px-4 py-8 text-left sm:rounded-b-2xl sm:px-16">+ <div className="flex flex-col space-y-3 bg-gray-50 px-4 py-8 text-left sm:px-16"><Buttontext="Connect Google Account"onClick={() => {diff --git a/apps/web/ui/modals/import-bitly-modal.tsx b/apps/web/ui/modals/import-bitly-modal.tsxindex f371190065..a293bd43c7 100644--- a/apps/web/ui/modals/import-bitly-modal.tsx+++ b/apps/web/ui/modals/import-bitly-modal.tsx@@ -109,7 +109,7 @@ function ImportBitlyModal({</p></div>- <div className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:rounded-b-2xl sm:px-16">+ <div className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:px-16">{isLoading ? (<button className="flex flex-col items-center justify-center space-y-4 bg-none"><LoadingSpinner />diff --git a/apps/web/ui/modals/import-rebrandly-modal.tsx b/apps/web/ui/modals/import-rebrandly-modal.tsxindex cc9ce65229..96b425689b 100644--- a/apps/web/ui/modals/import-rebrandly-modal.tsx+++ b/apps/web/ui/modals/import-rebrandly-modal.tsx@@ -117,7 +117,7 @@ function ImportRebrandlyModal({</p></div>- <div className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:rounded-b-2xl sm:px-16">+ <div className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:px-16">{isLoading ? (<button className="flex flex-col items-center justify-center space-y-4 bg-none"><LoadingSpinner />diff --git a/apps/web/ui/modals/import-short-modal.tsx b/apps/web/ui/modals/import-short-modal.tsxindex d28fb041c9..5f43bad5cb 100644--- a/apps/web/ui/modals/import-short-modal.tsx+++ b/apps/web/ui/modals/import-short-modal.tsx@@ -105,7 +105,7 @@ function ImportShortModal({</p></div>- <div className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:rounded-b-2xl sm:px-16">+ <div className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:px-16">{isLoading ? (<button className="flex flex-col items-center justify-center space-y-4 bg-none"><LoadingSpinner />diff --git a/apps/web/ui/modals/invite-teammate-modal.tsx b/apps/web/ui/modals/invite-teammate-modal.tsxindex c89f48251d..97a9e6298e 100644--- a/apps/web/ui/modals/invite-teammate-modal.tsx+++ b/apps/web/ui/modals/invite-teammate-modal.tsx@@ -71,7 +71,7 @@ function InviteTeammateModal({setInviting(false);});}}- className="flex flex-col space-y-4 bg-gray-50 px-4 py-8 text-left sm:rounded-b-2xl sm:px-16"+ className="flex flex-col space-y-4 bg-gray-50 px-4 py-8 text-left sm:px-16"><div><label htmlFor="email" className="block text-sm text-gray-700">diff --git a/apps/web/ui/modals/link-qr-modal.tsx b/apps/web/ui/modals/link-qr-modal.tsxindex 1f2ede8371..d241741857 100644--- a/apps/web/ui/modals/link-qr-modal.tsx+++ b/apps/web/ui/modals/link-qr-modal.tsx@@ -155,7 +155,7 @@ export function QRCodePicker({<h3 className="text-lg font-medium">Download QR Code</h3></div>- <div className="flex flex-col space-y-6 bg-gray-50 py-6 text-left sm:rounded-b-2xl">+ <div className="flex flex-col space-y-6 bg-gray-50 py-6 text-left"><div className="mx-auto rounded-lg border-2 border-gray-200 bg-white p-4"><QRCodeSVGvalue={qrData.value}diff --git a/apps/web/ui/modals/remove-saml-modal.tsx b/apps/web/ui/modals/remove-saml-modal.tsxindex 5388823bb2..d24c7b18df 100644--- a/apps/web/ui/modals/remove-saml-modal.tsx+++ b/apps/web/ui/modals/remove-saml-modal.tsx@@ -46,7 +46,7 @@ function RemoveSAMLModal({</p></div>- <div className="flex flex-col space-y-4 bg-gray-50 px-4 py-8 text-left sm:rounded-b-2xl sm:px-16">+ <div className="flex flex-col space-y-4 bg-gray-50 px-4 py-8 text-left sm:px-16"><div className="flex items-center space-x-3 rounded-md border border-gray-300 bg-white p-3"><imgsrc={SAML_PROVIDERS.find((p) => p.name === provider)!.logo}diff --git a/apps/web/ui/modals/remove-scim-modal.tsx b/apps/web/ui/modals/remove-scim-modal.tsxindex 8ffe71eba3..2533a2ef4c 100644--- a/apps/web/ui/modals/remove-scim-modal.tsx+++ b/apps/web/ui/modals/remove-scim-modal.tsx@@ -52,7 +52,7 @@ function RemoveSCIMModal({</p></div>- <div className="flex flex-col space-y-4 bg-gray-50 px-4 py-8 text-left sm:rounded-b-2xl sm:px-16">+ <div className="flex flex-col space-y-4 bg-gray-50 px-4 py-8 text-left sm:px-16"><div className="flex items-center space-x-3 rounded-md border border-gray-300 bg-white p-3"><imgsrc={currentProvider.logo}diff --git a/apps/web/ui/modals/remove-teammate-modal.tsx b/apps/web/ui/modals/remove-teammate-modal.tsxindex fc5dafe618..4a213a8357 100644--- a/apps/web/ui/modals/remove-teammate-modal.tsx+++ b/apps/web/ui/modals/remove-teammate-modal.tsx@@ -74,7 +74,7 @@ function RemoveTeammateModal({</p></div>- <div className="flex flex-col space-y-4 bg-gray-50 px-4 py-8 text-left sm:rounded-b-2xl sm:px-16">+ <div className="flex flex-col space-y-4 bg-gray-50 px-4 py-8 text-left sm:px-16"><div className="flex items-center space-x-3 rounded-md border border-gray-300 bg-white p-3"><Avatar user={user} /><div className="flex flex-col">diff --git a/apps/web/ui/modals/saml-modal.tsx b/apps/web/ui/modals/saml-modal.tsxindex 5c20b9284b..9d38bb96c3 100644--- a/apps/web/ui/modals/saml-modal.tsx+++ b/apps/web/ui/modals/saml-modal.tsx@@ -56,7 +56,7 @@ function SAMLModal({</p></div>- <div className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:rounded-b-2xl sm:px-16">+ <div className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:px-16"><formonSubmit={async (e) => {e.preventDefault();diff --git a/apps/web/ui/modals/scim-modal.tsx b/apps/web/ui/modals/scim-modal.tsxindex 80335e5561..08ff338475 100644--- a/apps/web/ui/modals/scim-modal.tsx+++ b/apps/web/ui/modals/scim-modal.tsx@@ -74,7 +74,7 @@ function SCIMModal({</p></div>- <div className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:rounded-b-2xl sm:px-16">+ <div className="flex flex-col space-y-6 bg-gray-50 px-4 py-8 text-left sm:px-16"><formonSubmit={async (e) => {e.preventDefault();diff --git a/apps/web/ui/modals/token-created-modal.tsx b/apps/web/ui/modals/token-created-modal.tsxindex d85000ded7..5f3f335c02 100644--- a/apps/web/ui/modals/token-created-modal.tsx+++ b/apps/web/ui/modals/token-created-modal.tsx@@ -30,7 +30,7 @@ function TokenCreatedModal({</p></div>- <div className="flex flex-col space-y-4 bg-gray-50 px-4 py-8 text-left sm:rounded-b-2xl sm:px-16">+ <div className="flex flex-col space-y-4 bg-gray-50 px-4 py-8 text-left sm:px-16"><div className="flex items-center justify-between rounded-md border border-gray-300 bg-white p-3"><p className="font-mono text-sm text-gray-500">{token}</p><CopyButton value={token} className="rounded-md" />diff --git a/apps/web/ui/modals/transfer-link-modal.tsx b/apps/web/ui/modals/transfer-link-modal.tsxindex f99394110c..a9ab24801e 100644--- a/apps/web/ui/modals/transfer-link-modal.tsx+++ b/apps/web/ui/modals/transfer-link-modal.tsx@@ -67,6 +67,7 @@ function TransferLinkModal({<ModalshowModal={showTransferLinkModal}setShowModal={setShowTransferLinkModal}+ className="overflow-visible"><formonSubmit={async (e) => {diff --git a/packages/ui/src/modal.tsx b/packages/ui/src/modal.tsxindex 030dba99c4..ba90bb8036 100644--- a/packages/ui/src/modal.tsx+++ b/packages/ui/src/modal.tsx@@ -91,7 +91,7 @@ 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 border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl",+ "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",className,)}>