Add sizes and loading props to catalog item images
This commit is contained in:
@@ -190,6 +190,8 @@ export function ItemCatalog({ category }: { category: CatalogCategory }) {
|
|||||||
alt={item.name}
|
alt={item.name}
|
||||||
className="rounded-lg object-cover"
|
className="rounded-lg object-cover"
|
||||||
fill
|
fill
|
||||||
|
loading="eager"
|
||||||
|
sizes="56px"
|
||||||
src={resolveCdnUrl(item.thumbnail) || ''}
|
src={resolveCdnUrl(item.thumbnail) || ''}
|
||||||
/>
|
/>
|
||||||
{attachmentIcon && (
|
{attachmentIcon && (
|
||||||
|
|||||||
Reference in New Issue
Block a user