The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Bring back the scrollbar
Tim Wilsona561f88bb9ca
diff --git a/apps/web/ui/modals/add-edit-link-modal/unsplash-search.tsx b/apps/web/ui/modals/add-edit-link-modal/unsplash-search.tsxindex fc6215015d..9543041e8e 100644--- a/apps/web/ui/modals/add-edit-link-modal/unsplash-search.tsx+++ b/apps/web/ui/modals/add-edit-link-modal/unsplash-search.tsx@@ -30,7 +30,7 @@ export default function UnsplashSearch({return (<div- className="scrollbar-hide h-[24rem] w-full overflow-auto p-3 md:w-[24rem]"+ className="h-[24rem] w-full overflow-auto p-3 md:w-[24rem]"// Fixes a Webkit issue where elements outside of the visible area are still interactablestyle={{ WebkitClipPath: "inset(0 0 0 0)" }}>diff --git a/packages/ui/src/modal.tsx b/packages/ui/src/modal.tsxindex 8ec914daed..ba90bb8036 100644--- a/packages/ui/src/modal.tsx+++ b/packages/ui/src/modal.tsx@@ -86,18 +86,17 @@ export function Modal({// for detecting when there's an active opened modalid="modal-backdrop"className="animate-fade-in fixed inset-0 z-40 bg-gray-100 bg-opacity-50 backdrop-blur-md"+ />+ <Dialog.Content+ 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",+ className,+ )}>- <Dialog.Content- 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",- className,- )}- >- {children}- </Dialog.Content>- </Dialog.Overlay>+ {children}+ </Dialog.Content></Dialog.Portal></Dialog.Root>);