The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Merge branch 'main' into sso
Steven Tey1c39abb42d22
diff --cc app/ui/content/zoom-image.tsxindex 41ad53f2a4,7ba195f404..929b732ff9--- a/app/ui/content/zoom-image.tsx+++ b/app/ui/content/zoom-image.tsx@@@ -7,12 -7,19 +7,19 @@@ import Zoom from "react-medium-image-zoimport "react-medium-image-zoom/dist/styles.css";export default function ZoomImage(- props: ImageProps & { blurDataURL?: string },+ props: ImageProps & { blurDataURL?: string; hideCaption?: boolean },) {- const { isDesktop } = useMediaQuery();+ const { width, height, isDesktop } = useMediaQuery();return (<figure className="not-prose flex flex-col items-center justify-center space-y-3">- <Zoom zoomMargin={isDesktop ? 45 : undefined}>+ <Zoom+ zoomMargin={isDesktop ? 45 : undefined}+ zoomImg={{+ src: props.src as string,+ alt: props.alt,+ ...(width && height ? { width, height } : {}),+ }}+ ><BlurImage{...props}className="rounded-lg border border-gray-200"