Last modified: 2013-12-01 05:02:54 UTC
Created attachment 13564 [details] Media Viewer Lightbox Alpha Screenshot The File Name at the top of the light box view of the Media Viewer tends to wrap around to a second line when it is too long, as seen on this multimedia alpha site. (1) Consider truncate the title after 32 characters, to avoid wrap around. Also, we should aim to let that title stretch all the way to the right of the page, instead of wrapping it up in the middle, as shown in the attached screenshot. More info about Media Viewer on our project page (2). (1) http://multimedia-alpha.wmflabs.org/wiki/Lightbox_demo (2) https://www.mediawiki.org/wiki/Multimedia/Media_Viewer
Would be nice to have a central ellipsis/truncation tool in mediawiki. There is jquery.autoEllipse [1] but it kind of sucks. Do you think it is possible to improve it instead of inventing our own solution? [1] https://git.wikimedia.org/blob/mediawiki%2Fcore.git/HEAD/resources%2Fjquery%2Fjquery.autoEllipsis.js
Change 92006 had a related patch set uploaded by MarkTraceur: Truncate a few files with autoEllipsis https://gerrit.wikimedia.org/r/92006
Change 92006 abandoned by MarkTraceur: Truncate a few fields with autoEllipsis Reason: I think I'm going to write a new patch that does this with a scrollable div. Let's see how that goes. https://gerrit.wikimedia.org/r/92006
This can still be done with autoEllipsis but I think text-overflow can handle it.
I think with a new bigger interface this is pretty much not necessary, or at least not pressing. Someone can take it if they want - it should be as simple as adding a text-overflow rule for the title element.
*** Bug 56449 has been marked as a duplicate of this bug. ***
This task has been claimed by a Google Code-in student: http://www.google-melange.com/gci/task/view/google/gci2013/5272913229905920
There is a patch for review at https://gerrit.wikimedia.org/r/#/c/98108/
Change 98108 had a related patch set uploaded by Nemo bis: Auto-ellipsis for filename field Bug: 56113 https://gerrit.wikimedia.org/r/98108
Mark has merged the patch.