fix(react): Fix Collection background image URL
This commit is contained in:
parent
fa5dc0b7b1
commit
96dd83fc10
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue