mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-22 16:46:28 +01:00
Hacks to try make it less flashy
This commit is contained in:
parent
68829f6f76
commit
2680601bc6
1 changed files with 4 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue