mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-03-05 19:17:30 +08:00
fix: adjust alwaysShowHeart
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user