Added artwork

This commit is contained in:
booploops 2021-12-02 23:00:47 -08:00
parent 2da89b81b1
commit 64444b2123
2 changed files with 5 additions and 1 deletions

View file

@ -219,7 +219,7 @@
<template>
<div @click="$parent.playMediaItemById(item.id, item.type)"
class="cd-mediaitem-square">
<div class="artwork" :style="$parent.getMediaItemArtwork(item.attributes.artwork.url)"></div>
<div class="artwork" :style="{'--artwork': $parent.getMediaItemArtwork(item.attributes.artwork.url, 80)}"></div>
<div class="title text-overflow-elipsis">
{{ item.attributes.name }}
</div>

View file

@ -2,6 +2,7 @@
:root {
--appleEase: cubic-bezier(0.42, 0, 0.58, 1);
--mediaItemShadow: inset 0px 0px 0px 1px rgb(200 200 200 / 16%), 0 8px 40px rgb(0 0 0 / 0.55);
--keyColor: #fa586a;
--keyColor-rgb: 250, 88, 106;
--keyColor-rollover: #ff8a9c;
@ -1230,6 +1231,9 @@ input[type=range].web-slider::-webkit-slider-runnable-track {
width: 80px;
background: blue;
border-radius: 100%;
background: var(--artwork);
background-size: contain;
box-shadow: var(--mediaItemShadow);
}
.cd-mediaitem-square .title {