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:
@@ -13,11 +13,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.triggerArea {
|
.triggerArea {
|
||||||
position: relative;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 100%;
|
}
|
||||||
height: 100%;
|
|
||||||
|
.triggerArea:not(.fill) {
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.image {
|
.image {
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ function ImageGallery({
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div
|
<div
|
||||||
className={styles.triggerArea}
|
className={`${styles.triggerArea} ${fill ? styles.fill : ""}`}
|
||||||
role="button"
|
role="button"
|
||||||
onClick={() => setLightboxIsOpen(true)}
|
onClick={() => setLightboxIsOpen(true)}
|
||||||
aria-label={intl.formatMessage({ id: "Open image gallery" })}
|
aria-label={intl.formatMessage({ id: "Open image gallery" })}
|
||||||
|
|||||||
Reference in New Issue
Block a user