mediaitem bgcolor is now used as a placeholder for artwork whenever present

This commit is contained in:
booploops 2022-01-24 01:55:12 -08:00
parent dd97dd4ccb
commit c8df81de6d
3 changed files with 13 additions and 16 deletions

View file

@ -3,6 +3,7 @@
v-observe-visibility="{callback: visibilityChanged}">
<img :src="app.getMediaItemArtwork(url, size, width)"
decoding="async" loading="lazy"
:style="{background: bgcolor}"
class="mediaitem-artwork--img">
<div v-if="video && isVisible && getVideoPriority()" class="animatedartwork-view-box">
<animatedartwork-view :priority="getVideoPriority()" :video="video"></animatedartwork-view>
@ -22,6 +23,10 @@
type: [String, Number],
required: false
},
bgcolor: {
type: String,
default: ''
},
url: {
type: String,
default: ''