Skip to content

Commit

Permalink
Homepage layoutshift issue (#3196)
Browse files Browse the repository at this point in the history
* Homepage - Layout shift issue

TODO

* Adding updated tina-lock file

* Removing the comment
  • Loading branch information
amankumarrr authored Oct 8, 2024
1 parent 8f2e06d commit acb3aa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/blocks/carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const CarouselItemImage = (props: CarouselItemImageProps) => {
alt={label}
height={388}
width={1080}
sizes="(max-width: 768px) 20vw, 100vw" // for mobile, it will load 20% of the viewport width as it is not visible on mobile
sizes="100vw"
priority={index === 0}
/>
{/* `legend` required so that the carousel works properly */}
Expand Down
2 changes: 1 addition & 1 deletion tina/tina-lock.json

Large diffs are not rendered by default.

0 comments on commit acb3aa9

Please sign in to comment.