Fix IMG nesting div in p tags - invalid HTML

This commit is contained in:
encie22 committed 2026-10-15 12:11:28 +10:30
1 parent e22a4dc112
commit 433b84ea8f
1 file changed
+3 -3
+3 -3
View File
@@ -11,14 +11,14 @@ const image = getImageByPath(src);
{ {
image && ( image && (
<div class="my-8"> <span class="my-8 block">
<Image <Image
src={image} src={image}
alt={alt} alt={alt}
width={1344} width={1344}
class="transition ease-in-out lg:hover:scale-150" class="transition ease-in-out lg:hover:scale-150"
/> />
<div class="mt-2 block w-full text-center text-sm italic">{alt}</div> <span class="mt-2 block w-full text-center text-sm italic">{alt}</span>
</div> </span>
) )
} }