shorts label for video items if video length <= a minute

This commit is contained in:
Sai Karthik 2022-06-21 11:15:47 +05:30 committed by Hosted Weblate
parent 325e5f01f0
commit 8b4c34ad54
No known key found for this signature in database
GPG key ID: A3FAAA06E6569B4C

View file

@ -23,7 +23,8 @@
v-if="video.duration > 0"
v-text="timeFormat(video.duration)"
/>
<span class="thumbnail-overlay thumbnail-right" v-if="video.duration <= 60" v-text="`SHORTS`" />
<!-- shorts thumbnail -->
<span class="thumbnail-overlay thumbnail-left" v-if="video.duration <= 60" v-t="SHORTS" />
<span
class="thumbnail-overlay thumbnail-right"
v-else-if="video.duration >= 60"
@ -120,6 +121,12 @@
.thumbnail-right {
@apply bottom-5px right-5px;
}
.thumbnail-left {
@apply bottom-5px left-5px;
background-color: #f40407;
font-size: 10px;
font-weight: bold;
}
</style>
<script>