fix(SW-886): add onclick function to images
This commit is contained in:
@@ -28,6 +28,7 @@ export default function PreviewImages({
|
|||||||
title={image.metaData.title}
|
title={image.metaData.title}
|
||||||
width={index === 0 ? 752 : 292}
|
width={index === 0 ? 752 : 292}
|
||||||
height={index === 0 ? 540 : 266}
|
height={index === 0 ? 540 : 266}
|
||||||
|
onClick={() => setLightboxIsOpen(true)}
|
||||||
className={styles.image}
|
className={styles.image}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
max-height: 30vh;
|
max-height: 30vh;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.imageWrapper > :nth-child(2),
|
.imageWrapper > :nth-child(2),
|
||||||
|
|||||||
Reference in New Issue
Block a user