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
81e8f388c9
commit
00aa83b802
1 changed files with 8 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue