fix: image warning

This commit is contained in:
DIYgod
2022-09-29 21:51:56 +01:00
parent 4a04893dd1
commit b02a4cd553
2 changed files with 1 additions and 6 deletions
-2
View File
@@ -63,8 +63,6 @@ export const SiteHome: React.FC<{
className="object-cover rounded w-24 h-24"
alt="cover"
layout="fill"
width={96}
height={96}
src={post.cover}
></Image>
</div>
+1 -4
View File
@@ -29,10 +29,7 @@ export const Image: React.FC<
}
>
<span
className={clsx(
"inline-flex justify-center",
autoSize ? "relative w-full h-full" : "",
)}
className="inline-flex justify-center relative w-full h-full"
style={autoSize ? { paddingTop } : {}}
>
<NextImage