Merge pull request #10794 from supabase/fix/img-blog

fix blog link issue
This commit is contained in:
Jonathan Summers-Muir authored and GitHub committed 2022-12-08 11:14:35 +08:00
commit c67b321ea3
1 file changed
+3 -10
+3 -10
View File
@@ -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} />