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

@ -2081,6 +2081,9 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
position: relative;
width: 100%;
height: 100%;
background-image: url("https://beta.music.apple.com/assets/product/MissingArtworkMusic.svg");
background-size: cover;
background-position: center;
.animatedartwork-view-box {
position: absolute;

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>