diff --git a/app/styles/base.css b/app/styles/base.css index 4a4aaeb..d3ba92f 100644 --- a/app/styles/base.css +++ b/app/styles/base.css @@ -96,10 +96,10 @@ nav:where(.sticky, .fixed), transform: translateZ(0); } -[class*="grid"]>* { +/* [class*="grid"]>* { content-visibility: auto; contain-intrinsic-size: auto 400px; -} +} */ [class*="grid"]>a { animation: fadeInUp 0.2s ease-out; diff --git a/components/search/VideoCard.tsx b/components/search/VideoCard.tsx index 13a3f64..cd90d3e 100644 --- a/components/search/VideoCard.tsx +++ b/components/search/VideoCard.tsx @@ -28,9 +28,11 @@ export const VideoCard = memo(({ return (
(e.currentTarget.style.zIndex = '100')} + onMouseLeave={(e) => (e.currentTarget.style.zIndex = '1')} > (({ aria-label={`${video.vod_name}${video.vod_remarks ? ` - ${video.vod_remarks}` : ''}`} prefetch={false} className="group cursor-pointer hover:translate-y-[-2px] transition-transform duration-200 ease-out block h-full" - style={{ - position: 'relative', - zIndex: 1, - }} - onMouseEnter={(e) => (e.currentTarget.style.zIndex = '100')} - onMouseLeave={(e) => (e.currentTarget.style.zIndex = '1')} > {visibleItems.map(({ video, videoUrl, cardId }) => {