fix: image warning
This commit is contained in:
parent
4a04893dd1
commit
b02a4cd553
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue