added placeholder artwork

This commit is contained in:
booploops 2021-12-22 17:13:17 -08:00
parent c1c3a4f200
commit 1f91b51cca
2 changed files with 6 additions and 3 deletions

View file

@ -2,15 +2,15 @@
<template v-if="type == 'artists'">
<div class="mediaitem-artwork rounded" :key="url" :style="getStyle()">
<img :src="app.getMediaItemArtwork(url, size)"
loading="lazy" decoding="async"
decoding="async"
class="mediaitem-artwork--img">
</div>
</template>
<template v-else>
<div class="mediaitem-artwork" :key="url" :style="getStyle()"
v-observe-visibility="{callback: visibilityChanged}">
<img :src="app.getMediaItemArtwork(url, size)" v-if="isVisible"
loading="lazy" decoding="async"
<img :src="app.getMediaItemArtwork(url, size)"
decoding="async"
class="mediaitem-artwork--img">
<div v-if="video && isVisible" class="animatedartwork-view-box">
<animatedartwork-view :video="video"></animatedartwork-view>