Page MenuHomePhabricator

Auto-ellipsis for filename field
Closed, ResolvedPublic


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).



Version: unspecified
Severity: normal
Whiteboard: gci2013


Media-Viewer-Lightbox-View-Screenshot-Alpha-10-24-2013.png (888×1 px, 630 KB)



Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:32 AM
bzimport set Reference to bz56113.
bzimport added a subscriber: Unknown Object (MLST).

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?


Change 92006 had a related patch set uploaded by MarkTraceur:
Truncate a few files with autoEllipsis

Change 92006 abandoned by MarkTraceur:
Truncate a few fields with autoEllipsis

I think I'm going to write a new patch that does this with a scrollable div. Let's see how that goes.

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. ***

Change 98108 had a related patch set uploaded by Nemo bis:
Auto-ellipsis for filename field Bug: 56113