Last modified: 2013-11-20 00:20:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T58449, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56449 - File names should not wrap-around to the second line
File names should not wrap-around to the second line
Status: RESOLVED DUPLICATE of bug 56113
Product: MediaWiki extensions
Classification: Unclassified
MultimediaViewer (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-01 03:15 UTC by Fabrice Florin
Modified: 2013-11-20 00:20 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Media-Viewer-Bug-Large-Font-Description-Wikimedia-Team-Screenshot (751.14 KB, image/png)
2013-11-01 03:15 UTC, Fabrice Florin
Details

Description Fabrice Florin 2013-11-01 03:15:07 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.
Comment 1 Brion Vibber 2013-11-01 12:05:30 UTC
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!)
Comment 2 Mark Holmquist 2013-11-20 00:20:46 UTC

*** This bug has been marked as a duplicate of bug 56113 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links