browse hero items now use correct artwork

This commit is contained in:
booploops 2022-08-23 22:34:57 -07:00
parent 4c0855165f
commit 2c87591ce3
2 changed files with 3 additions and 2 deletions

View file

@ -908,7 +908,7 @@
}
.cd-mediaitem-mvview .artwork {
height: 172px;
height: auto;
width: 300px;
background: blue;
border-top-left-radius: 6px;
@ -918,6 +918,7 @@
flex: 0 0 auto;
margin: 6px;
margin-top: 0px;
aspect-ratio: 1.7435897435897436;
}
.cd-mediaitem-mvview-overlay {

View file

@ -15,7 +15,7 @@
</div>
<div class="artwork">
<mediaitem-artwork
:url="item.attributes?.artwork ? item.attributes?.artwork?.url : ''"
:url="item.attributes?.editorialArtwork.subscriptionHero.url ?? item.attributes?.artwork"
:video="(item.attributes != null && item.attributes?.editorialVideo != null) ? (item.attributes?.editorialVideo?.motionDetailSquare ? item.attributes?.editorialVideo?.motionDetailSquare?.video : (item.attributes?.editorialVideo?.motionSquareVideo1x1 ? item?.attributes?.editorialVideo?.motionSquareVideo1x1?.video : '')) : '' "
:size="516" :width="900"
></mediaitem-artwork>