From da46031ae6b3e5ec649e287d6253cfe8e65961cf Mon Sep 17 00:00:00 2001 From: shinya Date: Thu, 19 Jun 2025 10:22:47 +0800 Subject: [PATCH] style: play style && video card style --- src/app/play/page.tsx | 35 ++++++++++++++++++----------------- src/components/VideoCard.tsx | 4 +++- 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/src/app/play/page.tsx b/src/app/play/page.tsx index 745a910..e8857c4 100644 --- a/src/app/play/page.tsx +++ b/src/app/play/page.tsx @@ -787,11 +787,11 @@ export default function PlayPage() { showTopBar ? 'opacity-100' : 'opacity-0' }`} > -
+
{/* 返回按钮 */} - {/* 中央标题 */} -
- {/* 标题行与数据源徽章 */} -
-
- {videoTitle} -
- {detail?.videoInfo?.source_name && ( - - {detail.videoInfo.source_name} - - )} + {/* 中央标题及集数信息 */} +
+
+ {videoTitle}
{totalEpisodes > 1 && ( @@ -828,8 +820,15 @@ export default function PlayPage() { )}
- {/* 右侧占位,保持标题居中 */} -
+ {/* 数据源徽章放置在右侧,不影响标题居中 */} + {detail?.videoInfo?.source_name && ( + + {detail.videoInfo.source_name} + + )}
@@ -1076,7 +1075,9 @@ export default function PlayPage() { {result.title}
-
{result.source_name}
+
+ {result.source_name} +
diff --git a/src/components/VideoCard.tsx b/src/components/VideoCard.tsx index 4b37a3b..2a7ef3b 100644 --- a/src/components/VideoCard.tsx +++ b/src/components/VideoCard.tsx @@ -140,7 +140,9 @@ export default function VideoCard({ {source && ( - {source_name} + + {source_name} + )}