diff --git a/src/components/EpisodeSelector.tsx b/src/components/EpisodeSelector.tsx index 6f48709..ec23eac 100644 --- a/src/components/EpisodeSelector.tsx +++ b/src/components/EpisodeSelector.tsx @@ -427,7 +427,7 @@ const EpisodeSelector: React.FC = ({ if (!aIsCurrent && bIsCurrent) return 1; return 0; }) - .map((source) => { + .map((source, index) => { const isCurrentSource = source.source?.toString() === currentSource?.toString() && source.id?.toString() === currentId?.toString(); @@ -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 + className={`flex items-start gap-3 p-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' @@ -463,9 +463,18 @@ const EpisodeSelector: React.FC = ({
{/* 标题和分辨率 - 顶部 */}
-

- {source.title} -

+
+

+ {source.title} +

+ {/* 标题级别的 tooltip - 第一个元素不显示 */} + {index !== 0 && ( +
+ {source.title} +
+
+ )} +
{(() => { const sourceKey = `${source.source}-${source.id}`; const videoInfo = videoInfoMap.get(sourceKey); diff --git a/src/components/VideoCard.tsx b/src/components/VideoCard.tsx index 2f09f98..62feff1 100644 --- a/src/components/VideoCard.tsx +++ b/src/components/VideoCard.tsx @@ -337,9 +337,16 @@ export default function VideoCard({ )} {/* 标题与来源信息 - 改进颜色过渡和延迟 */} - - {actualTitle} - +
+ + {actualTitle} + + {/* 自定义 tooltip */} +
+ {actualTitle} +
+
+
{config.showSourceName && source_name && (