feat: add accessible image lightbox for post images (#654)

* feat: add accessible image lightbox for post images

* fix: iOS scroll lock, backdrop blur, dvh image sizing for lightbox

* feat: add vanilla pinch-to-zoom to image lightbox

* fix: improve touch event handling and scaling logic in image lightbox

---------

Co-authored-by: satnaing <satnaingdev@gmail.com>
This commit is contained in:
kOaDT
2026-06-06 04:08:21 +02:00
committed by GitHub
parent 38c4f39fde
commit 98f15ee3bc
2 changed files with 274 additions and 0 deletions
+8
View File
@@ -47,6 +47,14 @@
@apply border-border mx-auto border;
}
img[role="button"] {
@apply cursor-zoom-in;
&:focus-visible {
@apply outline-2 outline-offset-2 outline-dashed;
}
}
figcaption {
@apply opacity-75;
}