Last modified: 2013-11-20 00:20:46 UTC
Created attachment 13648 [details] Media-Viewer-Bug-Large-Font-Description-Wikimedia-Team-Screenshot The file name at the top of the light box view of the Media Viewer should not wrap around to the second line, which throws the page out of balance and creates unnecessary empty lines. Instead, it should stretch all the way to the right of the page, instead of wrapping it up in the middle, as shown in the attached screenshot. One reason given for forcing this wrap around in the middle of the page was that if the author name and source name are missing, it would run into the license information. I believe it would be better to leave the author and source fields blank on the second line than to have that ugly wrap around every time a file name is too long. Related to this request is the separate bug to truncate the file name if it exceeds 32 characters -- and add an ellipsis or three dots in a row at the end of this. Both of these requests are important, to provide a better viewing experience to the user, which is the whole point of this tool.
Rather than truncating the string based on character count I'd recommend using CSS, something like: white-space: no-wrap; text-overflow: ellipsis; This'll let the browser deal with figuring out how much of the string it can fit in the display. (32 characters wide in Chinese is a *lot* wider than 32 characters in Arabic!)
*** This bug has been marked as a duplicate of bug 56113 ***