From 318253632d90d6173a9364d4d5815538342da5ee Mon Sep 17 00:00:00 2001 From: shinya Date: Tue, 15 Jul 2025 20:48:44 +0800 Subject: [PATCH] fix: episode selector styles --- src/components/EpisodeSelector.tsx | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/components/EpisodeSelector.tsx b/src/components/EpisodeSelector.tsx index 1032265..3ca96b6 100644 --- a/src/components/EpisodeSelector.tsx +++ b/src/components/EpisodeSelector.tsx @@ -437,7 +437,7 @@ const EpisodeSelector: React.FC = ({ onClick={() => !isCurrentSource && handleSourceClick(source) } - className={`flex items-start gap-3 p-3 rounded-lg cursor-pointer transition-all duration-200 relative + className={`flex items-start gap-3 px-2 py-3 rounded-lg cursor-pointer transition-all duration-200 relative ${ isCurrentSource ? 'bg-green-500/10 dark:bg-green-500/20 border-green-500/30 border' @@ -462,8 +462,8 @@ const EpisodeSelector: React.FC = ({ {/* 信息区域 */}
{/* 标题和分辨率 - 顶部 */} -
-
+
+

{source.title}

@@ -482,7 +482,7 @@ const EpisodeSelector: React.FC = ({ if (videoInfo && videoInfo.quality !== '未知') { if (videoInfo.hasError) { return ( -
+
检测失败
); @@ -502,7 +502,7 @@ const EpisodeSelector: React.FC = ({ return (
{videoInfo.quality}
@@ -510,7 +510,12 @@ const EpisodeSelector: React.FC = ({ } } - return null; + // 始终显示占位符,确保布局一致且分辨率信息始终可见 + return ( +
+ 检测中 +
+ ); })()}