Page MenuHomePhabricator

Horizontal scrollbars appearing in image category listings
Closed, ResolvedPublic

Description

Author: brianna.laugher

Description:
3 of the images in this category appear with tiny scrollbars underneath the size
line in their caption. Since they're entirely unuseful, I'm thinking they're not
supposed to be there.


Version: 1.11.x
Severity: trivial
OS: Linux
Platform: PC
URL: http://commons.wikimedia.org/wiki/Category:Commons_bots

Details

Reference
bz9854

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 9:37 PM
bzimport set Reference to bz9854.
bzimport added a subscriber: Unknown Object (MLST).

brianna.laugher wrote:

screenshot

attaching screenshot

Attached:

scrollbars.png (819×816 px, 172 KB)

I added those in r21909 in response to bug 3770. Have to check if it is possible
to not trigger unnecessary scrollbars.

brianna.laugher wrote:

OK. scrollbars in galleries are OK, in category listings it's kinda silly. So either
a) stop the scrollbars from occurring in category listings
b) stop truncating image names in category captions.

I think (b) is better. At the moment we have captions like
"Recent-changes-bot.c...".

I would recommend overflow: hidden instead of overflow: auto here. Scrollbars on
the little gallery previews kinda suck... bad enough for really long words in
caption, but here it's even just the clipped file name being slightly too long
depending on your font size. :P

ayg wrote:

(In reply to comment #2)

I added those in r21909 in response to bug 3770. Have to check if it is possible
to not trigger unnecessary scrollbars.

The scrollbars are "necessary" in the provided screenshot. A couple of pixels
of padding or whatever are obscured. (The scrollbar-generating logic definitely
doesn't have any idea that nobody cares about padding. Petition the W3C for a
max-padding property. :P)