Added dynamic affiliate URLs and video player restrictions.
This commit is contained in:
@@ -46,6 +46,13 @@
|
||||
@play="playing = true; paused = false;"
|
||||
@pause="playing = false; paused = true;"
|
||||
/>
|
||||
|
||||
<Icon
|
||||
v-if="(release.trailer || release.teaser).isRestricted"
|
||||
v-tooltip="'Restricted video'"
|
||||
icon="blocked"
|
||||
class="restricted"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div
|
||||
@@ -192,6 +199,15 @@ const coversInAlbum = props.release.covers?.length > 0 && props.release.trailer;
|
||||
width: calc(21/9 * 16rem);
|
||||
flex-shrink: 0;
|
||||
aspect-ratio: 16/9;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.restricted {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
padding: .5rem;
|
||||
fill: var(--highlight-weak-10);
|
||||
}
|
||||
|
||||
:deep(.player) {
|
||||
|
||||
Reference in New Issue
Block a user