Commit 7b05837c by lijiabin

【需求 25171】fix: 视频时长为空时隐藏时长标签,避免出现空的黑色小块

parent 854e5aea
......@@ -59,6 +59,7 @@
<!-- 时长 -->
<div
v-if="list[0]?.videoDuration"
class="absolute bottom-4 right-4 bg-black/80 text-white px-3 py-1.5 rounded-lg text-sm"
>
{{ list[0]?.videoDuration }}
......@@ -135,7 +136,7 @@
<!-- 时长 -->
<div
v-if="!smallerThanXl"
v-if="!smallerThanXl && item?.videoDuration"
class="absolute bottom-3 right-3 bg-black/80 text-white px-2 py-1 rounded-lg text-xs"
>
{{ item?.videoDuration }}
......@@ -218,7 +219,7 @@
<!-- 时长 -->
<div
v-if="!smallerThanXl"
v-if="!smallerThanXl && item.videoDuration"
class="absolute bottom-3 right-3 bg-black/80 text-white px-2 py-1 rounded-lg text-xs"
>
{{ item.videoDuration }}
......@@ -312,7 +313,7 @@
<!-- 时长 -->
<div
v-if="!smallerThanXl"
v-if="!smallerThanXl && item?.videoDuration"
class="absolute bottom-3 right-3 bg-black/80 text-white px-2 py-1 rounded-lg text-xs"
>
{{ item?.videoDuration }}
......
......@@ -59,6 +59,7 @@
<!-- 时长 -->
<div
v-if="item?.videoDuration"
class="absolute bottom-3 right-3 bg-black/80 text-white px-2 py-1 rounded-lg text-xs"
>
{{ item?.videoDuration }}
......@@ -162,6 +163,7 @@
<!-- 时长 -->
<div
v-if="i.videoDuration"
class="absolute bottom-3 right-3 bg-black/80 text-white px-2 py-1 rounded-lg text-xs"
>
{{ i.videoDuration }}
......
......@@ -94,7 +94,7 @@
>
<img :src="item.faceUrl" class="w-full h-full object-cover" />
<div
v-if="item.type === ArticleTypeEnum.VIDEO"
v-if="item.type === ArticleTypeEnum.VIDEO && item.videoDuration"
class="absolute bottom-2 right-2 bg-black/70 text-white text-12px px-2 py-0.5 rounded"
>
{{ item.videoDuration }}
......
......@@ -81,6 +81,7 @@
>
<img :src="item.faceUrl" class="w-full h-full object-cover" />
<div
v-if="item.videoDuration"
class="absolute bottom-2 right-2 bg-black/70 text-white text-12px px-2 py-0.5 rounded"
>
{{ item.videoDuration }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment