Hacks to try make it less flashy

This commit is contained in:
Lim Chee Aun 2023-03-28 11:11:07 +08:00
parent 68829f6f76
commit 2680601bc6

View file

@ -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 = '';
}}
/>
</QuickPinchZoom>