Skip to content

Commit

Permalink
fix image warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wizardlyhel committed Jan 10, 2025
1 parent ed625de commit f31a320
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tender-cycles-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'skeleton': patch
---

Fix image size warnings on collections page
1 change: 1 addition & 0 deletions templates/skeleton/app/routes/collections._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ function CollectionItem({
aspectRatio="1/1"
data={collection.image}
loading={index < 3 ? 'eager' : undefined}
sizes="(min-width: 45em) 400px, 100vw"
/>
)}
<h5>{collection.title}</h5>
Expand Down

0 comments on commit f31a320

Please sign in to comment.