From 116c17124919dcb146b9713607b3ba4cc53a44ca Mon Sep 17 00:00:00 2001 From: callmeyan Date: Wed, 16 Apr 2025 16:36:15 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=20=E5=9B=9E=E6=94=B6=E7=AB=99=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E5=AE=BD=E5=BA=A6=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/recycle/components/style.module.scss | 3 +++ src/pages/recycle/components/video-item.tsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/recycle/components/style.module.scss b/src/pages/recycle/components/style.module.scss index 85d203b..c5f9364 100644 --- a/src/pages/recycle/components/style.module.scss +++ b/src/pages/recycle/components/style.module.scss @@ -4,6 +4,9 @@ :global { .video-bottom { } + .video-time-info{ + min-width: 60px; + } } } diff --git a/src/pages/recycle/components/video-item.tsx b/src/pages/recycle/components/video-item.tsx index 23ed2cd..55b7813 100644 --- a/src/pages/recycle/components/video-item.tsx +++ b/src/pages/recycle/components/video-item.tsx @@ -32,7 +32,7 @@ export default function VideoItem(props: VideoItemProps) { className="video-bottom bg-black/30 backdrop-blur-[2px] text-sm absolute inset-x-0 bottom-0 text-white py-2 px-3 items-center flex justify-between">
props.onClick?.(false)}>{props.videoInfo.title}
-
{timeFromNow(props.videoInfo.d_time)}
+
{timeFromNow(props.videoInfo.d_time)}
{Math.ceil(props.videoInfo.duration / 1000)}s