1
0
Fork 0

fix(react): Fix Collection background image URL

This commit is contained in:
Benjamin Fan 2025-05-20 10:26:58 -07:00 committed by Joost De Cock
parent fa5dc0b7b1
commit 96dd83fc10

View file

@ -282,7 +282,7 @@ const DesignCard = ({ name, lineDrawing = false, linkTo, Link, onClick }) => {
const exampleImageUrl = examples.href[name] ? examples.href[name] : noExample
const bg = { aspectRatio: '1/1.4' }
if (!lineDrawing) {
bg.backgroundImage = `url(${exampleImageUrl}`
bg.backgroundImage = `url(${exampleImageUrl})`
bg.backgroundSize = 'cover'
bg.backgroundPosition = 'center center'
}