Merged in fix/image-gallery (pull request #1274)

fix: quick fix to have the tiggerArea only be position relative when not using fill

* fix: quick fix to have the tiggerArea only be position relative when not using fill


Approved-by: Pontus Dreij
This commit is contained in:
Erik Tiekstra
2025-02-07 12:42:17 +00:00
parent c204532acc
commit b12bc5c808
2 changed files with 5 additions and 4 deletions

View File

@@ -13,11 +13,12 @@
}
.triggerArea {
position: relative;
display: flex;
cursor: pointer;
width: 100%;
height: 100%;
}
.triggerArea:not(.fill) {
position: relative;
}
.image {

View File

@@ -33,7 +33,7 @@ function ImageGallery({
return (
<>
<div
className={styles.triggerArea}
className={`${styles.triggerArea} ${fill ? styles.fill : ""}`}
role="button"
onClick={() => setLightboxIsOpen(true)}
aria-label={intl.formatMessage({ id: "Open image gallery" })}