mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-21 21:29:20 +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: {
|
style: {
|
||||||
width: 'inherit',
|
width: 'inherit',
|
||||||
height: 'inherit',
|
height: 'inherit',
|
||||||
|
justifyContent: 'inherit',
|
||||||
|
alignItems: 'inherit',
|
||||||
|
display: 'inherit',
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
onUpdate={onUpdate}
|
onUpdate={onUpdate}
|
||||||
|
@ -88,6 +91,7 @@ function Media({ media, showOriginal, autoAnimate, onClick = () => {} }) {
|
||||||
decoding="async"
|
decoding="async"
|
||||||
onLoad={(e) => {
|
onLoad={(e) => {
|
||||||
e.target.closest('.media-image').style.backgroundImage = '';
|
e.target.closest('.media-image').style.backgroundImage = '';
|
||||||
|
e.target.closest('.media-zoom').style.display = '';
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</QuickPinchZoom>
|
</QuickPinchZoom>
|
||||||
|
|
Loading…
Reference in a new issue