diff --git a/src/components/media.jsx b/src/components/media.jsx index 3fa8f87c..957e89de 100644 --- a/src/components/media.jsx +++ b/src/components/media.jsx @@ -74,6 +74,9 @@ function Media({ media, showOriginal, autoAnimate, onClick = () => {} }) { style: { width: 'inherit', height: 'inherit', + justifyContent: 'inherit', + alignItems: 'inherit', + display: 'inherit', }, }} onUpdate={onUpdate} @@ -88,6 +91,7 @@ function Media({ media, showOriginal, autoAnimate, onClick = () => {} }) { decoding="async" onLoad={(e) => { e.target.closest('.media-image').style.backgroundImage = ''; + e.target.closest('.media-zoom').style.display = ''; }} />