Use lazySizes globally
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-04-16 17:20:29 +02:00
parent 7f3f2ac3ba
commit 239a47104e
4 changed files with 9 additions and 13 deletions

View File

@@ -8,7 +8,6 @@
// Props and variables
export let photo
export let index
export let layout = 'list'
let scope
// Default size for the image
@@ -57,7 +56,7 @@
<img src="data:image/png;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="
width={defaultWidth} height={defaultHeight}
alt={imgAlt}
class:lazyload={layout === 'list'}
class="lazyload"
/>
</picture>
</a>