mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 03:15:06 +03:00
Merge pull request #10794 from supabase/fix/img-blog
fix blog link issue
This commit is contained in:
1 file changed
+3
-10
@@ -30,20 +30,13 @@ export default function mdxComponents(type?: 'blog' | 'lp' | undefined) {
|
|||||||
img: (props: any) => {
|
img: (props: any) => {
|
||||||
if (props.className !== ignoreClass) {
|
if (props.className !== ignoreClass) {
|
||||||
return (
|
return (
|
||||||
<div
|
<span className={['next-image--dynamic-fill'].join(' ')}>
|
||||||
className={[
|
|
||||||
'next-image--dynamic-fill',
|
|
||||||
type === 'blog' && 'to-scale-400 from-scale-500 rounded-lg border bg-gradient-to-r',
|
|
||||||
].join(' ')}
|
|
||||||
>
|
|
||||||
<Image
|
<Image
|
||||||
{...props}
|
{...props}
|
||||||
className={['next-image--dynamic-fill', type === 'blog' && 'rounded-md border'].join(
|
className={[type === 'blog' ? 'rounded-md border' : ''].join(' ')}
|
||||||
' '
|
|
||||||
)}
|
|
||||||
layout="fill"
|
layout="fill"
|
||||||
/>
|
/>
|
||||||
</div>
|
</span>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
return <img {...props} />
|
return <img {...props} />
|
||||||
|
|||||||
Reference in new issue
Block a user