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[]
|
||||
product: ProductNode
|
||||
variant?: 'slim' | 'simple'
|
||||
imgWidth: number
|
||||
imgHeight: number
|
||||
imgWidth: number | string
|
||||
imgHeight: number | string
|
||||
priority?: boolean
|
||||
}
|
||||
|
||||
|
@ -80,8 +80,8 @@ export default function Home({
|
||||
key={node.path}
|
||||
product={node}
|
||||
// The first image is the largest one in the grid
|
||||
imgWidth={i === 0 ? 1600 : 820}
|
||||
imgHeight={i === 0 ? 1600 : 820}
|
||||
imgWidth={i === 0 ? '65vw' : '30vw'}
|
||||
imgHeight={i === 0 ? '45vw' : '22vw'}
|
||||
priority
|
||||
/>
|
||||
))}
|
||||
|
Loading…
x
Reference in New Issue
Block a user