Last modified: 2013-12-01 05:02:54 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 T58113, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56113 - Auto-ellipsis for filename field
Auto-ellipsis for filename field
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
MultimediaViewer (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
gci2013
: easy
: 56449 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-24 18:26 UTC by Fabrice Florin
Modified: 2013-12-01 05:02 UTC (History)
7 users (show)

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


Attachments
Media Viewer Lightbox Alpha Screenshot (630.22 KB, image/png)
2013-10-24 18:26 UTC, Fabrice Florin
Details

Description Fabrice Florin 2013-10-24 18:26:31 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
Comment 1 Tisza Gergő 2013-10-25 16:07:14 UTC
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
Comment 2 Gerrit Notification Bot 2013-10-25 22:10:11 UTC
Change 92006 had a related patch set uploaded by MarkTraceur:
Truncate a few files with autoEllipsis

https://gerrit.wikimedia.org/r/92006
Comment 3 Gerrit Notification Bot 2013-11-01 18:49:31 UTC
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
Comment 4 Mark Holmquist 2013-11-01 18:52:37 UTC
This can still be done with autoEllipsis but I think text-overflow can handle it.
Comment 5 Mark Holmquist 2013-11-20 00:04:59 UTC
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.
Comment 6 Mark Holmquist 2013-11-20 00:20:46 UTC
*** Bug 56449 has been marked as a duplicate of this bug. ***
Comment 7 Quim Gil 2013-11-28 00:45:30 UTC
This task has been claimed by a Google Code-in student:

http://www.google-melange.com/gci/task/view/google/gci2013/5272913229905920
Comment 8 Quim Gil 2013-11-29 07:52:17 UTC
There is a patch for review at https://gerrit.wikimedia.org/r/#/c/98108/
Comment 9 Gerrit Notification Bot 2013-11-30 09:17:09 UTC
Change 98108 had a related patch set uploaded by Nemo bis:
Auto-ellipsis for filename field Bug: 56113

https://gerrit.wikimedia.org/r/98108
Comment 10 Quim Gil 2013-12-01 05:02:54 UTC
Mark has merged the patch.

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


Navigation
Links