The default size of the mediapress lightbox is way too small (imho). There is presumably a simple-ish CSS way to get it take up 70% of the screen real estate. Or something like that… Have I missed the obvious documentation?
Many thanks in advance for any helpful suggestion.
Hi Richard,
Sorry about that. We have it fixed width(set to 900px).If your user’s are advance, you could use flex box like this
.mpp-lightbox-content { width: 90%; display: flex; height: auto; min-height: 400px; } .mpp-lightbox-media-container { flex: 1; width: auto; }
But it won’t work in older browsers(Prefixing may help though).
Regards
Brajeshhi Brajesh,
that looks much better. One thing with that solution is that it makes the multiple comments drop off the bottom (pushing the white box a long way downwards). If you have a quick fix for that, to make the comments scrollable and contained within the same height of the image box, that would be great. However, I’m also happy to experiment 🙂
Thanks very much for the prompt fix!
R.
sorry Brajesh, I need to re-open this one for a moment.
Using your quick-fix suggestion with the CSS was fine for the desktop, but on mobile / handy / cell the captions where way too large, and covered the image completely.
Do you have a solid workaround to get the image larger on the desktop, and keep the current behaviour on the mobile?
R.
- This reply was modified 6 years, 11 months ago by Richard Foley.
Hi Richard,
since we are continuing the discussion on the new topichttps://buddydev.com/support/forums/topic/mediapress-lightbox-resize-for-desktopmobile/
I am closing it.
Regards
Brajesh
The topic ‘ [Resolved] Mediapress lightbox size’ is closed to new replies.