fix: adjust alwaysShowHeart

This commit is contained in:
shinya
2025-07-03 21:37:25 +08:00
parent 92323fcb69
commit 712b61e1df

View File

@@ -146,7 +146,7 @@ export default function VideoCard({
}; };
const hideCheckCircle = from === 'favorites' || from === 'search'; const hideCheckCircle = from === 'favorites' || from === 'search';
const alwaysShowHeart = from === 'favorites'; const alwaysShowHeart = from !== 'favorites';
return ( return (
<Link <Link
@@ -245,7 +245,7 @@ export default function VideoCard({
)} )}
{/* 搜索非聚合 - 集数圆形展示框 */} {/* 搜索非聚合 - 集数圆形展示框 */}
{from === 'search' && ( {episodes && episodes > 1 && !currentEpisode && (
<div className='absolute top-2 right-2 w-4 h-4 sm:w-7 sm:h-7 rounded-full bg-green-500/90 dark:bg-green-600/90 flex items-center justify-center shadow-md text-[0.55rem] sm:text-xs'> <div className='absolute top-2 right-2 w-4 h-4 sm:w-7 sm:h-7 rounded-full bg-green-500/90 dark:bg-green-600/90 flex items-center justify-center shadow-md text-[0.55rem] sm:text-xs'>
<span className='text-white font-bold leading-none'> <span className='text-white font-bold leading-none'>
{episodes} {episodes}