fix: disable lightbox animation in firefox since it isnt supported yet

This commit is contained in:
Ilia Mashkov
2026-05-23 12:52:16 +03:00
parent 9ebb515032
commit 532f93d896
+12 -1
View File
@@ -479,5 +479,16 @@ dialog.lightbox {
@utility lightbox-image {
box-sizing: content-box;
max-width: calc(100vw - 2rem);
max-height: calc(100vh - 8rem);
max-height: calc(100vh - 10rem);
}
/* Disable transition animation for Firefox
* since it isn't supported yet */
@supports (-moz-appearance: none) {
::view-transition-group(lightbox-frame),
::view-transition-old(lightbox-frame),
::view-transition-new(lightbox-frame) {
animation-duration: 0s !important;
animation-delay: 0s !important;
}
}