Fix duration not being shown.

Closes #1667
This commit is contained in:
Kavin 2022-11-02 23:59:32 +00:00
parent f574abbf7f
commit 5bcbed1966
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD

View File

@ -27,7 +27,7 @@
<span class="thumbnail-overlay thumbnail-left" v-if="item.isShort" v-t="'video.shorts'" /> <span class="thumbnail-overlay thumbnail-left" v-if="item.isShort" v-t="'video.shorts'" />
<span <span
class="thumbnail-overlay thumbnail-right" class="thumbnail-overlay thumbnail-right"
v-else-if="item.duration >= 60" v-else-if="item.duration >= 0"
v-text="timeFormat(item.duration)" v-text="timeFormat(item.duration)"
/> />
<i18n-t v-else keypath="video.live" class="thumbnail-overlay thumbnail-right !bg-red-600" tag="div"> <i18n-t v-else keypath="video.live" class="thumbnail-overlay thumbnail-right !bg-red-600" tag="div">