Skip to content

Commit

Permalink
fix(SanityImage): add required mock Image width and height
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiazom committed Sep 27, 2024
1 parent 187945a commit f26d071
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/image/SanityImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ export function SanityImage({ image }: { image: IImage }) {
<Image
alt={image?.alt || ""}
src={image.src.src}
style={{ objectFit: "cover", width: "100%", height: "100%" }}
style={{ objectFit: "cover", height: "100%" }}
width={300}
height={300}
/>
);
}
Expand Down

0 comments on commit f26d071

Please sign in to comment.