From f6bd08da499a0d5b3f479c7a8b1894b95eea5bf4 Mon Sep 17 00:00:00 2001 From: zhaoweijie Date: Mon, 25 Aug 2025 20:52:34 +0800 Subject: [PATCH] =?UTF-8?q?style(VideoPlayer):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E6=A0=8F=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除了 control bar 类名中的 `bottom-0`,以修复控制栏在隐藏时仍然占据空间的问题- 优化了 control bar 的显示和隐藏动画,使其更加流畅 --- src/components/Option/VideoPlayer/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Option/VideoPlayer/index.tsx b/src/components/Option/VideoPlayer/index.tsx index 4fa6a93..29e496c 100644 --- a/src/components/Option/VideoPlayer/index.tsx +++ b/src/components/Option/VideoPlayer/index.tsx @@ -348,7 +348,7 @@ const VideoPlayer = () => { {/* 控制栏 - 使用与原始HTML相同的类名和行为 */}
+ className={`absolute left-0 w-full bg-gradient-to-t from-black to-transparent p-4 transition-all duration-300 ease-in-out flex flex-col gap-2.5 ${showControls ? "bottom-0" : "-bottom-40"}`}>
{logo}