From 80fd408659ea98b6bb8d641fd50cb6d9075d12e4 Mon Sep 17 00:00:00 2001 From: ShiGuangAlex Date: Wed, 15 Apr 2026 11:56:26 +0800 Subject: [PATCH] Show year badges on single-result search cards --- src/components/VideoCard.tsx | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/src/components/VideoCard.tsx b/src/components/VideoCard.tsx index 13c6f2f..801979f 100644 --- a/src/components/VideoCard.tsx +++ b/src/components/VideoCard.tsx @@ -982,7 +982,8 @@ const VideoCard = forwardRef(function VideoCard )} - {actualEpisodes && actualEpisodes > 1 && orientation === 'vertical' && ( + {orientation === 'vertical' && + ((actualEpisodes && actualEpisodes > 1) || displayYear) && (
(function VideoCard }} > {/* 集数显示 */} -
{ - e.preventDefault(); - return false; - }} - > - 共{actualEpisodes}集 -
+ {actualEpisodes && actualEpisodes > 1 && ( +
{ + e.preventDefault(); + return false; + }} + > + 共{actualEpisodes}集 +
+ )} {/* 年份显示 */} {displayYear && (