Topic on Extension talk:FancyBoxThumbs

Issue with long descriptions

3
Protnet (talkcontribs)

If a photo description is too long it remains in a single line going off the screen and causes the appearence of a horizontal scrollbar.

A workaround I've used is to add the following to MediaWiki:Common.css.

.fancybox-title-float-wrap .child {
    white-space: normal;
}

which has the following result:

The description is now readable but lays over the image.

I guess what needs to be done here is somehow for the frame to auto adjust itself to fit alongside with the description.

HenryHartley (talkcontribs)

You may have already found this, but for anyone else trying to tame long captions, if you include the following in your LocalSettings.php file, then the caption will be enclosed in the bounding box and long captions are handled quite well. If you have other FancyBoxOptions, of course, you'll need to add this to them rather than adding this line by itself.

$fbtFancyBoxOptions = '{"helpers":{"title":{"type":"inside"}}}';
Protnet (talkcontribs)

Yes! That solves it!

In fact I think it's much better that way! I guess I should have RTFM more closely ;)

Thanks a lot!

Reply to "Issue with long descriptions"