styling of locked games

This commit is contained in:
2026-04-15 21:34:57 +03:00
parent bb2af28b48
commit 2f0d33d431
2 changed files with 27 additions and 19 deletions
@@ -1,4 +1,5 @@
<template>
<div class="asset-preview">
<div v-show="forRendering">
<div class="position-relative">
<div ref="target"></div>
@@ -18,6 +19,7 @@
:src="`/asset/default/${obj.asset?.name}`"></video>
<audio v-if="obj && !forRendering && obj.type == 'audio'" controls :autoplay="autoplay ? 'autoplay' : ''"
:src="`/asset/default/${obj.asset?.name}`" class="d-block w-100"></audio>
</div>
</template>
<script>
+8 -2
View File
@@ -84,16 +84,22 @@ video{
}
}
.asset-preview {
img {
max-width: 100%;
}
}
.locked {
pointer-events: none;
opacity: 0.5;
position: relative;
&::after{
background-color: rgba(0,0,0,0.22);
content:"\F033E";
text-align: center;
font-family: "Material Design Icons";
font-size: 111px;
opacity: 0.5;
color: rgba(255, 255, 255, 0.33);
position: absolute;
width: 100%;
height: 100%;