fix the top view of browse

This commit is contained in:
vapormusic 2021-12-25 09:12:45 +07:00
parent 2fca495a5d
commit b49c079a21
4 changed files with 21 additions and 17 deletions

View file

@ -1,7 +1,7 @@
<script type="text/x-template" id="mediaitem-artwork">
<template v-if="type == 'artists'">
<div class="mediaitem-artwork rounded" :key="url" :style="getStyle()">
<img :src="app.getMediaItemArtwork(url, size)"
<img :src="app.getMediaItemArtwork(url, size, width)"
decoding="async"
class="mediaitem-artwork--img">
</div>
@ -9,7 +9,7 @@
<template v-else>
<div class="mediaitem-artwork" :key="url" :style="getStyle()"
v-observe-visibility="{callback: visibilityChanged}">
<img :src="app.getMediaItemArtwork(url, size)"
<img :src="app.getMediaItemArtwork(url, size, width)"
decoding="async"
class="mediaitem-artwork--img">
<div v-if="video && isVisible" class="animatedartwork-view-box">
@ -27,6 +27,10 @@
type: String,
default: '120'
},
width: {
type: String,
required: false
},
url: {
type: String,
default: ''