1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

A few thumbnails and preview mode tweaks

Discussion in 'Media Gallery Support' started by Newt, Mar 25, 2015.

  1. Newt

    Newt Active Member

    Hi, need to make a few tweaks:

    - what template is it for the lightbox preview mode, need to remove the media count for it's often overlapped by media titles and am having a hard time localizing this part of code.

    - (how) can I prevent the media's title to be truncated in thumbnails pages (of category/albums)? Some have a long title, now it might break the "grid pattern" of the gallery but display media in a more dynamic, "Pinterest-like way".
    Or will this break the page at all? :D

  2. Chris D

    Chris D XenForo Developer Staff Member

    Actually a lot of the HTML for the lightbox is defined in its JS so I do not recommend changing that. You can hide it with CSS though.

        display: none;
    The media titles are truncated with CSS, this would do what you wanted:

    .gridSection .mediaContainer .titleSection h3
      text-overflow: clip;
      overflow: visible;
      white-space: normal;
    Although it won't cause too much of a problem, you should probably ensure the maximum characters for titles is quite low:

  3. Newt

    Newt Active Member

    Awesome, thanks Chris! (y)

Share This Page