Skip to content

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

Update mdxComponents.tsx

Jonathan Summers-Muir3e0086e60357
diff --git a/apps/www/lib/mdx/mdxComponents.tsx b/apps/www/lib/mdx/mdxComponents.tsx
index 5464795d445..e8b1e6dacf5 100644
--- a/apps/www/lib/mdx/mdxComponents.tsx
+++ b/apps/www/lib/mdx/mdxComponents.tsx
@@ -30,20 +30,13 @@ export default function mdxComponents(type?: 'blog' | 'lp' | undefined) {
img: (props: any) => {
if (props.className !== ignoreClass) {
return (
- <div
- className={[
- 'next-image--dynamic-fill',
- type === 'blog' && 'to-scale-400 from-scale-500 rounded-lg border bg-gradient-to-r',
- ].join(' ')}
- >
+ <span className={['next-image--dynamic-fill'].join(' ')}>
<Image
{...props}
- className={['next-image--dynamic-fill', type === 'blog' && 'rounded-md border'].join(
- ' '
- )}
+ className={[type === 'blog' ? 'rounded-md border' : ''].join(' ')}
layout="fill"
/>
- </div>
+ </span>
)
}
return <img {...props} />