Added dynamic affiliate URLs and video player restrictions.

This commit is contained in:
2026-01-28 00:57:32 +01:00
parent 31c62e01f9
commit 0bf0b716b2
7 changed files with 54 additions and 23 deletions

View File

@@ -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) {