Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(www): className on Img components

Greg Richardsoncdd4f6f75c77
diff --git a/apps/www/lib/mdx/mdxComponents.tsx b/apps/www/lib/mdx/mdxComponents.tsx
index 92a7c63f8de..63a19621734 100644
--- a/apps/www/lib/mdx/mdxComponents.tsx
+++ b/apps/www/lib/mdx/mdxComponents.tsx
@@ -12,6 +12,7 @@ import {
CollapsibleTrigger_Shadcn_,
CollapsibleContent_Shadcn_,
IconTriangle,
+ cn,
} from 'ui'
import ImageFadeStack from '~/components/ImageFadeStack'
import ZoomableImg from '~/components/ZoomableImg/ZoomableImg'
@@ -91,8 +92,8 @@ export default function mdxComponents(type?: 'blog' | 'lp' | undefined) {
}
return <img {...props} />
},
- Img: ({ zoomable = true, ...props }: any) => (
- <figure className="m-0">
+ Img: ({ zoomable = true, className, ...props }: any) => (
+ <figure className={cn('m-0', className)}>
<ZoomableImg zoomable={zoomable}>
<span
className={[