Skip to content

Commit

Permalink
fix image sizing via transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanKiral committed Dec 11, 2024
1 parent 33b1067 commit a1bea79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/FeaturedComponentBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const FeaturedComponentBase: FC<FeaturedContentProps> = ({ type, image, children
<img
width={640}
height={420}
src={image.value[0]?.url ? `${image.value[0]?.url}?auto=format` : ""}
src={image.value[0]?.url ? `${image.value[0]?.url}?auto=format&w=800` : ""}
alt={image.value[0].description ?? "image alt"}
className="object-cover rounded-lg static"
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/HeroImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const HeroImage: FC<HeroImageProps> = ({ data }) => {
className=" object-cover mx-auto"
width={670}
height={440}
src={`${data.heroImage.value[0].url}?auto=format`}
src={`${data.heroImage.value[0].url}?auto=format&w=800`}
alt={data.heroImage.value[0].description ?? "image-alt"}
>
</img>
Expand Down

0 comments on commit a1bea79

Please sign in to comment.