mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-02-21 17:24:41 +08:00
feat: make Image unoptimized
This commit is contained in:
@@ -179,6 +179,7 @@ function AggregatePageClient() {
|
||||
className='w-full rounded-xl object-cover'
|
||||
style={{ aspectRatio: '2/3' }}
|
||||
priority
|
||||
unoptimized
|
||||
/>
|
||||
</div>
|
||||
{/* 右侧信息 */}
|
||||
|
||||
@@ -171,6 +171,7 @@ function DetailPageClient() {
|
||||
className='w-full rounded-xl object-cover'
|
||||
style={{ aspectRatio: '2/3' }}
|
||||
priority
|
||||
unoptimized
|
||||
/>
|
||||
</div>
|
||||
{/* 右侧信息 */}
|
||||
|
||||
@@ -68,6 +68,7 @@ const AggregateCard: React.FC<AggregateCardProps> = ({ items }) => {
|
||||
alt={first.title}
|
||||
fill
|
||||
className='object-cover'
|
||||
unoptimized
|
||||
/>
|
||||
|
||||
{/* Hover 层 & 播放按钮 */}
|
||||
|
||||
@@ -74,6 +74,7 @@ const DemoCard = ({ title, poster, rate }: DemoCardProps) => {
|
||||
fill
|
||||
className='object-cover'
|
||||
referrerPolicy='no-referrer'
|
||||
unoptimized
|
||||
/>
|
||||
{/* 评分徽章 */}
|
||||
{rate && (
|
||||
|
||||
@@ -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'>
|
||||
|
||||
Reference in New Issue
Block a user