Page MenuHomePhabricator

Gallery: number of images hardcoded
Closed, ResolvedPublic

Description

Author: schwarzerf

Description:
The number of images shown in gallery mode is 48, which is OK, if four images are shown in one row. It is not however, if three or five images fit to the design's or window's width.

Is it possible to make the number of images adapt dynamically to the number of imageas that can be shown in a row?


See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=1340 T3340: Size thumbnails in galleries according to user preferences

Details

Reference
bz29600

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:35 PM
bzimport set Reference to bz29600.
bzimport added a subscriber: Unknown Object (MLST).

This could probably be done but would require making the page much more dynamic, loading bits from client-side JavaScript. It would probably be better at that point to go all=in and give it much more interactive filtering and whatnot.

Note, in trunk special:newfiles is not longer hard coded to 48. Its now 50 by default and there's the standard limit option where you can change how many are displayed. (That's not really what your definition of dynamic was, but its an improvement)

Krinkle claimed this task.
Krinkle edited projects, added Parsoid; removed MediaWiki-Special-pages.
Krinkle updated the task description. (Show Details)
Krinkle added a project: MediaWiki-Parser.
Krinkle removed a subscriber: wikibugs-l-list.