Merge pull request #2453 from basecamp/flavorjones/fix-create-card-2

Fix lightbox blocking clicks on page elements
This commit is contained in:
Mike Dalessio
2026-01-28 17:58:21 -05:00
committed by GitHub
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -3,14 +3,11 @@
--dialog-duration: 350ms;
--lightbox-padding: 3vmin;
align-items: center;
background-color: transparent;
block-size: 100dvh;
border: 0;
display: flex;
inline-size: 100dvw;
inset: 0;
justify-content: center;
margin: auto;
max-height: unset;
max-width: unset;
@@ -39,6 +36,9 @@
/* Open state */
&[open],
&[open]::backdrop {
align-items: center;
display: flex;
justify-content: center;
opacity: 1;
@starting-style {
@@ -30,7 +30,7 @@ export default class extends Controller {
reset() {
this.zoomedImageTarget.src = ""
this.captionTarget.innerHtml = " "
this.captionTarget.innerHTML = " "
this.dispatch('closed')
}