Fix webkit aspect ratio bug
This commit is contained in:
parent
22f636466e
commit
1cece74e0d
1 changed files with 1 additions and 3 deletions
|
|
@ -17,15 +17,13 @@ export const Image = ({
|
|||
class="image"
|
||||
style="background-size: cover; background-image: url('${
|
||||
image.placeholder
|
||||
}'); aspect-ratio: ${image.width / image.height}"
|
||||
}'); aspect-ratio: ${image.width / image.height};"
|
||||
>
|
||||
<img
|
||||
${isEagerLoaded ? '' : 'loading="lazy"'}
|
||||
srcset="${image.srcSet}"
|
||||
${sizes ? `sizes="${sizes}"` : ''}
|
||||
src="${image.src}"
|
||||
width="${image.width}"
|
||||
height="${image.height}"
|
||||
alt="${alt}"
|
||||
/>
|
||||
</div>`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue