mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
shorts label for video items if video length <= a minute
This commit is contained in:
parent
325e5f01f0
commit
8b4c34ad54
1 changed files with 8 additions and 1 deletions
|
@ -23,7 +23,8 @@
|
||||||
v-if="video.duration > 0"
|
v-if="video.duration > 0"
|
||||||
v-text="timeFormat(video.duration)"
|
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
|
<span
|
||||||
class="thumbnail-overlay thumbnail-right"
|
class="thumbnail-overlay thumbnail-right"
|
||||||
v-else-if="video.duration >= 60"
|
v-else-if="video.duration >= 60"
|
||||||
|
@ -120,6 +121,12 @@
|
||||||
.thumbnail-right {
|
.thumbnail-right {
|
||||||
@apply bottom-5px right-5px;
|
@apply bottom-5px right-5px;
|
||||||
}
|
}
|
||||||
|
.thumbnail-left {
|
||||||
|
@apply bottom-5px left-5px;
|
||||||
|
background-color: #f40407;
|
||||||
|
font-size: 10px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue