From bbe8cb201f034a43e218129be36854eb9d716b19 Mon Sep 17 00:00:00 2001 From: shinya Date: Mon, 23 Jun 2025 00:47:28 +0800 Subject: [PATCH] feat: adjust player style --- src/app/globals.css | 12 ++++++++++++ src/app/play/page.tsx | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/app/globals.css b/src/app/globals.css index 2ec4018..3e08c2f 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -87,3 +87,15 @@ body { display: none; /* Chrome Safari */ } } + +/* 隐藏 Artplayer 顶部提示 */ +.art-notice { + display: none !important; +} + +.art-poster { + background-size: contain !important; /* 使图片完整展示 */ + background-position: center center !important; /* 居中显示 */ + background-repeat: no-repeat !important; /* 防止重复 */ + background-color: #000 !important; /* 其余区域填充为黑色 */ +} diff --git a/src/app/play/page.tsx b/src/app/play/page.tsx index 3aa2c48..67b2478 100644 --- a/src/app/play/page.tsx +++ b/src/app/play/page.tsx @@ -418,7 +418,7 @@ function PlayPageClient() { volume: 0.7, isLive: false, muted: false, - autoplay: true, + autoplay: false, pip: false, autoSize: false, autoMini: false, @@ -1342,7 +1342,7 @@ function PlayPageClient() { {/* 中央标题及集数信息 */} -
+
{videoTitle}