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 Oct 7, 2024
1 parent fee826f commit a6de94f
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 a6de94f

Please sign in to comment.