The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix: resolve iOS rendering issue by no longer applying `height: fit-content` on `<Drawer.Content>`
unrenamed4838c369e00f
diff --git a/apps/web/ui/modals/add-edit-domain-modal.tsx b/apps/web/ui/modals/add-edit-domain-modal.tsxindex 5413fa77a1..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({<ModalshowModal={showAddEditDomainModal}setShowModal={setShowAddEditDomainModal}- className="h-fit max-h-[95vh]"+ className="max-h-[95dvh]"><div className="flex flex-col items-center justify-center gap-y-3 border-b border-gray-200 px-4 py-4 pt-8 sm:px-16">{logo ? (diff --git a/apps/web/ui/modals/add-edit-token-modal.tsx b/apps/web/ui/modals/add-edit-token-modal.tsxindex 4bd1c9c908..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({<ModalshowModal={showAddEditTokenModal}setShowModal={setShowAddEditTokenModal}- className="h-fit max-h-[95vh]"+ className="max-h-[95dvh]"><div className="flex flex-col items-center justify-center space-y-3 border-b border-gray-200 px-4 py-4 pt-8 sm:px-16">{logo ? (diff --git a/apps/web/ui/modals/import-csv-modal/index.tsx b/apps/web/ui/modals/import-csv-modal/index.tsxindex 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({<ModalshowModal={showImportCsvModal}setShowModal={setShowImportCsvModal}+ className="max-h-[95dvh] max-w-lg"onClose={() =>queryParams({del: "import",})}- className="h-fit max-h-[95dvh] max-w-lg overflow-y-auto"><div className="flex flex-col items-center justify-center space-y-3 border-b border-gray-200 px-4 py-8 sm:px-16"><div className="flex items-center gap-x-3 py-4">diff --git a/apps/web/ui/modals/invite-teammate-modal.tsx b/apps/web/ui/modals/invite-teammate-modal.tsxindex 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({<ModalshowModal={showInviteTeammateModal}setShowModal={setShowInviteTeammateModal}+ className="max-h-[95dvh]">- <div className="scrollbar-hide h-fit max-h-[95dvh] overflow-y-auto">- <div className="flex flex-col items-center justify-center space-y-3 border-b border-gray-200 px-4 py-4 pt-8 sm:px-16">- {logo ? (- <BlurImage- src={logo}- alt="Invite Teammates"- className="h-10 w-10 rounded-full"- width={20}- height={20}- />- ) : (- <Logo />- )}- <h3 className="text-lg font-medium">Invite Teammates</h3>- <p className="text-center text-sm text-gray-500">- Invite teammates with{" "}- <a- href="https://dub.co/help/article/workspace-roles"- target="_blank"- className="underline hover:text-gray-900"- >- different roles and permissions- </a>- . Invitations will be valid for 14 days.- </p>- </div>- {isLoading ? (- <div className="flex items-center justify-center p-8">- <LoadingSpinner />- </div>- ) : (- <InviteTeammatesForm- onSuccess={() => setShowInviteTeammateModal(false)}- className="bg-gray-50 px-4 py-8 sm:px-16"- invites={invites}+ <div className="flex flex-col items-center justify-center space-y-3 border-b border-gray-200 px-4 py-4 pt-8 sm:px-16">+ {logo ? (+ <BlurImage+ src={logo}+ alt="Invite Teammates"+ className="h-10 w-10 rounded-full"+ width={20}+ height={20}/>+ ) : (+ <Logo />)}+ <h3 className="text-lg font-medium">Invite Teammates</h3>+ <p className="text-center text-sm text-gray-500">+ Invite teammates with{" "}+ <a+ href="https://dub.co/help/article/workspace-roles"+ target="_blank"+ className="underline hover:text-gray-900"+ >+ different roles and permissions+ </a>+ . Invitations will be valid for 14 days.+ </p></div>+ {isLoading ? (+ <div className="flex items-center justify-center p-8">+ <LoadingSpinner />+ </div>+ ) : (+ <InviteTeammatesForm+ onSuccess={() => setShowInviteTeammateModal(false)}+ className="bg-gray-50 px-4 py-8 sm:px-16"+ invites={invites}+ />+ )}</Modal>);}diff --git a/packages/ui/src/modal.tsx b/packages/ui/src/modal.tsxindex e63df6df66..f4869fa8c9 100644--- a/packages/ui/src/modal.tsx+++ b/packages/ui/src/modal.tsx@@ -61,7 +61,8 @@ export function Modal({<Drawer.Overlay className="fixed inset-0 z-50 bg-gray-100 bg-opacity-10 backdrop-blur" /><Drawer.ContentclassName={cn(- "fixed bottom-0 left-0 right-0 z-50 flex flex-col rounded-t-[10px] border-t border-gray-200 bg-white",+ "fixed bottom-0 left-0 right-0 z-50 flex flex-col",+ "rounded-t-[10px] border-t border-gray-200 bg-white",className,)}>@@ -99,7 +100,9 @@ export function Modal({onOpenAutoFocus={(e) => e.preventDefault()}onCloseAutoFocus={(e) => e.preventDefault()}className={cn(- "scrollbar-hide animate-scale-in fixed inset-0 z-40 m-auto max-h-fit w-full max-w-md overflow-y-auto 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,)}>