fix(SW-886): add onclick function to images

This commit is contained in:
Fredrik Thorsson
2024-12-05 14:44:30 +01:00
parent 775f782b4d
commit 09eefc67cf
2 changed files with 2 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ export default function PreviewImages({
title={image.metaData.title}
width={index === 0 ? 752 : 292}
height={index === 0 ? 540 : 266}
onClick={() => setLightboxIsOpen(true)}
className={styles.image}
/>
))}

View File

@@ -13,6 +13,7 @@
width: 100%;
height: 100%;
max-height: 30vh;
cursor: pointer;
}
.imageWrapper > :nth-child(2),