You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
After uploading a picture in the post editor, Voyager only shows a tiny preview. Understandable, because a larger version might obscure the inputs below, but also annoying if you're struggling with writing a good title and want to avoid writing the same text that's already in the meme.
Describe the solution you'd like
When tapping the preview image in the post editor, a lightbox view should pop up showing a full size preview. Basically like the one that's available when viewing a regular post, sans the voting and share buttons at the bottom.
Describe alternatives you've considered
Open the photos app, find the picture there, and then switch back to Voyager, I guess. Doable but annoying, especially if you have a LOT of pictures.
Additional context
I tried implementing this myself by using the existing GalleryImg component in PhotoPreview, but even after moving the GalleryProvider outside of the PageContext I can't get it to work. The lightbox always comes up empty and worse yet, the close button doesn't even work. Not sure what I'm missing, but with the right clue I might be able to finish this myself.
Best I can currently do is probably just removing the size restriction so tapping on the preview would show a larger version inside the post editor, not in a lightbox.
The text was updated successfully, but these errors were encountered:
Okay, after fiddling with this some more it turns out that this is simply a z-index issue. The default z-index for PhotoSwipe is 100,000, but Voyager changes it to 100 in order for the IonActionSheet to be visible above it. The problem is that the IonModal from the Post Editor also uses a z-index in the same range (both use 20,000 + a small but increasing number), so when PhotoSwipe is loaded from within the modal, it pops up behind it, making it not only invisible and inaccessible, but also unable to dismiss because it captures input focus.
The problem is basically how to make PhotoSwipe use a larger z-indexonly when invoked from an IoModal (or specifically, the post editor), or make the modal use a smaller one. Unfortunately I can't see any solution other than a hacky one — somehow, the modified z-index would need to be passed through from the GalleryImg to the GalleryContext, because only that has a ref to the actual PhotoSwipe <div>.
Is your feature request related to a problem? Please describe.
After uploading a picture in the post editor, Voyager only shows a tiny preview. Understandable, because a larger version might obscure the inputs below, but also annoying if you're struggling with writing a good title and want to avoid writing the same text that's already in the meme.
Describe the solution you'd like
When tapping the preview image in the post editor, a lightbox view should pop up showing a full size preview. Basically like the one that's available when viewing a regular post, sans the voting and share buttons at the bottom.
Describe alternatives you've considered
Open the photos app, find the picture there, and then switch back to Voyager, I guess. Doable but annoying, especially if you have a LOT of pictures.
Additional context
I tried implementing this myself by using the existing
GalleryImg
component inPhotoPreview
, but even after moving theGalleryProvider
outside of thePageContext
I can't get it to work. The lightbox always comes up empty and worse yet, the close button doesn't even work. Not sure what I'm missing, but with the right clue I might be able to finish this myself.Best I can currently do is probably just removing the size restriction so tapping on the preview would show a larger version inside the post editor, not in a lightbox.
The text was updated successfully, but these errors were encountered: