From b984a078f9ed3b6858a6eaf1cbe3bc76fd14675f Mon Sep 17 00:00:00 2001 From: shinya Date: Sat, 5 Jul 2025 02:25:43 +0800 Subject: [PATCH] fix: card hover overflow --- src/components/AggregateCard.tsx | 6 +++--- src/components/DemoCard.tsx | 6 +++--- src/components/VideoCard.tsx | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/AggregateCard.tsx b/src/components/AggregateCard.tsx index f9bb1c7..d18248a 100644 --- a/src/components/AggregateCard.tsx +++ b/src/components/AggregateCard.tsx @@ -180,7 +180,7 @@ const AggregateCard: React.FC = ({ className='group relative w-full rounded-lg overflow-hidden bg-transparent flex flex-col cursor-pointer transition-all duration-300 ease-in-out' > {/* 封面图片 2:3 */} -
+
{/* 图片占位符 - 骨架屏效果 */} @@ -188,7 +188,7 @@ const AggregateCard: React.FC = ({ src={first.poster} alt={first.title} fill - className={`object-cover transition-all duration-700 cubic-bezier(0.34,1.56,0.64,1) + className={`object-cover transition-all duration-700 cubic-bezier(0.34,1.56,0.64,1) group-hover:scale-[1.05] ${ isLoaded ? 'opacity-100 scale-100' @@ -260,7 +260,7 @@ const AggregateCard: React.FC = ({
{/* 标题 */} - + {first.title} diff --git a/src/components/DemoCard.tsx b/src/components/DemoCard.tsx index 04229cf..b0003bc 100644 --- a/src/components/DemoCard.tsx +++ b/src/components/DemoCard.tsx @@ -134,7 +134,7 @@ const DemoCard = ({ id, title, poster, rate, type }: DemoCardProps) => { > {/* 海报图片区域 */}
{ alt={title} fill ref={imgRef} - className={`object-cover transition-all duration-700 cubic-bezier(0.34, 1.56, 0.64, 1) + className={`object-cover transition-all duration-700 cubic-bezier(0.34, 1.56, 0.64, 1) group-hover:scale-[1.05] ${ isLoaded ? 'opacity-100 scale-100 blur-0' @@ -209,7 +209,7 @@ const DemoCard = ({ id, title, poster, rate, type }: DemoCardProps) => {
{/* 信息层 - 暗色模式优化 */} - + {title} diff --git a/src/components/VideoCard.tsx b/src/components/VideoCard.tsx index dc0ebc5..f289a40 100644 --- a/src/components/VideoCard.tsx +++ b/src/components/VideoCard.tsx @@ -214,7 +214,7 @@ export default function VideoCard({ }`} > {/* 海报图片容器 */} -
+
{/* 图片占位符 - 骨架屏效果 */} @@ -222,7 +222,7 @@ export default function VideoCard({ src={poster} alt={title} fill - className={`object-cover transition-all duration-700 cubic-bezier(0.34,1.56,0.64,1) + className={`object-cover transition-all duration-700 cubic-bezier(0.34,1.56,0.64,1) group-hover:scale-[1.05] ${ isLoaded ? 'opacity-100 scale-100' @@ -346,7 +346,7 @@ export default function VideoCard({ )} {/* 信息层 - 与 DemoCard 对齐的动画 */} - + {title} @@ -354,7 +354,7 @@ export default function VideoCard({ {/* 来源信息 */} {source && ( - + {source_name}