fix the top-view again

This commit is contained in:
vapormusic 2021-12-25 09:25:31 +07:00
parent a4fc6b0848
commit 25221521cd
3 changed files with 5 additions and 3 deletions

View file

@ -1993,7 +1993,9 @@ const app = new Vue({
}
},
getMediaItemArtwork(url, height = 64, width) {
var newurl = `${url.replace('{w}', width ?? height).replace('{h}', height).replace('{f}', "webp").replace('{c}',(height == '516')? "sr" :"cc")}`;
var newurl = `${url.replace('{w}', width ?? height).replace('{h}', height).replace('{f}', "webp").replace('{c}', ((width === 900)? "sr" :"cc"))}`;
if (newurl.includes("900x516")){newurl = newurl.replace("900x516cc","900x516sr").replace("900x516bb","900x516sr");}
return newurl
},
getNowPlayingArtworkBG(size = 600) {

View file

@ -2606,7 +2606,7 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
}
.cd-mediaitem-mvview .artwork {
height: 190px;
height: 172px;
width: 300px;
background: blue;
border-top-left-radius: 6px;

View file

@ -3,7 +3,7 @@
<div style="position: relative; display: inline-flex;">
<div @click.self='app.routeView(item)'
class="cd-mediaitem-mvview">
<div style="height: 70px; min-height: 70px; max-height: 70px; width: 100%;">
<div style="height: 70px; min-height: 70px; max-height: 70px; width: 100%; margin-left: 5px;">
<div class="title-browse-sp bold " @click='app.routeView(item)' style = "color: darkgrey;">
{{ badge ? badge.designBadge : ''}}
</div>