fix: 🐛 wrong string format for sizes attribute
This commit is contained in:
parent
12876f0773
commit
019351fd35
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ const IMAGE_TRANSFORM_OPTS = {
|
|||
defaultAttributes: {
|
||||
loading: 'lazy',
|
||||
decoding: 'async',
|
||||
sizes: IMAGE_ATTR_SIZES.map(({ minw, size }) => (minw ? `(min-width: ${minw}): ${size}` : size))
|
||||
sizes: IMAGE_ATTR_SIZES.map(({ minw, size }) => (minw ? `(min-width: ${minw}) ${size}` : size)).join(', ')
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue