修复播放记录面板不显示当前集数

This commit is contained in:
mtvpls
2026-05-17 00:47:59 +08:00
parent 85f30322d3
commit 90fe293b06
+9 -7
View File
@@ -1039,10 +1039,10 @@ const VideoCard = forwardRef<VideoCardHandle, VideoCardProps>(function VideoCard
e.preventDefault();
return false;
}}
>
{/* 集数显示 */}
<div
className='bg-black/60 text-white text-[9px] sm:text-xs font-medium px-2 sm:px-3 py-0.5 sm:py-1 rounded-full shadow-md transition-all duration-300 ease-out group-hover:scale-110 backdrop-blur-sm flex items-center justify-center'
>
{/* 集数显示 */}
<div
className='bg-black/60 text-white text-[9px] sm:text-xs font-medium px-2 sm:px-3 py-0.5 sm:py-1 rounded-full shadow-md transition-all duration-300 ease-out group-hover:scale-110 backdrop-blur-sm flex items-center justify-center'
style={{
WebkitUserSelect: 'none',
userSelect: 'none',
@@ -1052,9 +1052,11 @@ const VideoCard = forwardRef<VideoCardHandle, VideoCardProps>(function VideoCard
e.preventDefault();
return false;
}}
>
{actualEpisodes}
</div>
>
{currentEpisode !== undefined && currentEpisode !== null
? `${currentEpisode}/${actualEpisodes}`
: `${actualEpisodes}`}
</div>
{/* 年份显示 */}
{displayYear && (