forked from crowetic/commerce
fix ima
This commit is contained in:
parent
9a74f52b08
commit
d46e32d0b9
@ -12,8 +12,8 @@ interface Props {
|
|||||||
children?: ReactNode[] | Component[] | any[]
|
children?: ReactNode[] | Component[] | any[]
|
||||||
product: ProductNode
|
product: ProductNode
|
||||||
variant?: 'slim' | 'simple'
|
variant?: 'slim' | 'simple'
|
||||||
imgWidth: number
|
imgWidth: number | string
|
||||||
imgHeight: number
|
imgHeight: number | string
|
||||||
priority?: boolean
|
priority?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,8 +80,8 @@ export default function Home({
|
|||||||
key={node.path}
|
key={node.path}
|
||||||
product={node}
|
product={node}
|
||||||
// The first image is the largest one in the grid
|
// The first image is the largest one in the grid
|
||||||
imgWidth={i === 0 ? 1600 : 820}
|
imgWidth={i === 0 ? '65vw' : '30vw'}
|
||||||
imgHeight={i === 0 ? 1600 : 820}
|
imgHeight={i === 0 ? '45vw' : '22vw'}
|
||||||
priority
|
priority
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user