feat: make Image unoptimized

This commit is contained in:
shinya
2025-06-25 21:32:48 +08:00
parent 70c0d8efc3
commit a18e5d4b84
5 changed files with 11 additions and 1 deletions

View File

@@ -179,6 +179,7 @@ function AggregatePageClient() {
className='w-full rounded-xl object-cover'
style={{ aspectRatio: '2/3' }}
priority
unoptimized
/>
</div>
{/* 右侧信息 */}

View File

@@ -171,6 +171,7 @@ function DetailPageClient() {
className='w-full rounded-xl object-cover'
style={{ aspectRatio: '2/3' }}
priority
unoptimized
/>
</div>
{/* 右侧信息 */}

View File

@@ -68,6 +68,7 @@ const AggregateCard: React.FC<AggregateCardProps> = ({ items }) => {
alt={first.title}
fill
className='object-cover'
unoptimized
/>
{/* Hover 层 & 播放按钮 */}

View File

@@ -74,6 +74,7 @@ const DemoCard = ({ title, poster, rate }: DemoCardProps) => {
fill
className='object-cover'
referrerPolicy='no-referrer'
unoptimized
/>
{/* 评分徽章 */}
{rate && (

View File

@@ -152,7 +152,13 @@ export default function VideoCard({
<div className='group relative w-full rounded-lg bg-transparent shadow-none flex flex-col'>
{/* 海报图片 - 2:3 比例 */}
<div className='relative aspect-[2/3] w-full overflow-hidden rounded-md'>
<Image src={poster} alt={title} fill className='object-cover' />
<Image
src={poster}
alt={title}
fill
className='object-cover'
unoptimized
/>
{/* Hover 效果 */}
<div className='absolute inset-0 bg-black/40 opacity-0 group-hover:opacity-100 transition-opacity duration-200 flex items-center justify-center group pointer-events-none'>