BuddyDev

Search

[Resolved] Mediapress lightbox size

  • Participant
    Level: Master
    Posts: 279
    Richard Foley on #11569

    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.

  • Keymaster
    (BuddyDev Team)
    Posts: 22201
    Brajesh Singh on #11571

    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
    Brajesh

  • Participant
    Level: Master
    Posts: 279
    Richard Foley on #11584

    hi 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.

  • Participant
    Level: Master
    Posts: 279
    Richard Foley on #12885

    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 4 years, 10 months ago by Richard Foley.
  • Keymaster
    (BuddyDev Team)
    Posts: 22201
    Brajesh Singh on #12900

    Hi Richard,
    since we are continuing the discussion on the new topic

    https://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.

This topic is: resolved