The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fixed mobile popover issue
Steven Tey979d00f6c574
diff --git a/app/ui/popover.tsx b/app/ui/popover.tsxindex 998838dbfc..9686b05ac8 100644--- a/app/ui/popover.tsx+++ b/app/ui/popover.tsx@@ -15,8 +15,8 @@ export default function Popover({children: ReactNode;content: ReactNode | string;align?: "center" | "start" | "end";- openPopover: boolean;- setOpenPopover: Dispatch<SetStateAction<boolean>>;+ openPopover?: boolean;+ setOpenPopover?: Dispatch<SetStateAction<boolean>>;}) {const { isMobile } = useMediaQuery();diff --git a/components/app/modals/add-edit-link-modal/og-section.tsx b/components/app/modals/add-edit-link-modal/og-section.tsxindex cc14b6737a..14b1f47f65 100644--- a/components/app/modals/add-edit-link-modal/og-section.tsx+++ b/components/app/modals/add-edit-link-modal/og-section.tsx@@ -128,7 +128,10 @@ export default function OGSection({openPopover={openPopover}setOpenPopover={setOpenPopover}>- <div className="flex h-6 w-6 cursor-pointer items-center justify-center rounded-md transition-colors duration-75 hover:bg-gray-100 active:bg-gray-200">+ <div+ onClick={() => setOpenPopover(true)}+ className="flex h-6 w-6 cursor-pointer items-center justify-center rounded-md transition-colors duration-75 hover:bg-gray-100 active:bg-gray-200"+ ><Unsplash className="h-3 w-3 text-gray-500" /></div></Popover>