fix crossfade from legacy

This commit is contained in:
jadera
2025-12-10 19:38:18 +02:00
parent 9f44bf57f6
commit 7d3fd6857c
2 changed files with 34 additions and 32 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/dev/types/routes.d.ts";
import "./.next/types/routes.d.ts";
// NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
+5 -3
View File
@@ -74,9 +74,11 @@ const CrossFadeImages: React.FC<CrossFadeImagesProps> = ({
<div key={idx} className={idx > 0 ? "not-first" : undefined}>
<AnimatedImage
src={image}
width={width}
height={height}
style={{ objectFit: "cover" }}
objectFit="cover"
alt=""
width={width as any}
height={height as any}
layout="responsive"
$delay={delays[idx]}
/>
</div>