Skip to content

Commit 960393a

Browse files
committed
Fix varying widths
1 parent 52dd94d commit 960393a

File tree

2 files changed

+4
-1284
lines changed

2 files changed

+4
-1284
lines changed

src/app/conf/2025/components/gallery-strip/index.tsx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,14 @@ function GalleryStripImage({
7070
return (
7171
<div role="presentation" className="relative md:px-2">
7272
<Image
73+
data-index={index}
7374
src={image}
7475
alt=""
7576
role="presentation"
7677
// intrinsic 799x533
7778
height={320}
78-
width={480}
79-
className={clsx(
80-
"pointer-events-none h-[320px] w-auto object-cover",
81-
// Alternate between 3 widths
82-
index % 4 === 2
83-
? "w-[200px]"
84-
: index % 3 === 2
85-
? "w-[420px]"
86-
: "w-[480px]",
87-
)}
79+
width={index % 4 === 2 ? 200 : index % 3 === 2 ? 420 : 480}
80+
className="pointer-events-none h-[320px] object-cover"
8881
/>
8982
</div>
9083
)

0 commit comments

Comments
 (0)