Page MenuHomePhabricator

Multicolumn list splits a multi-part title (PrefixIndex)
Closed, ResolvedPublic

Description

On https://www.mediawiki.org/wiki/Special:PrefixIndex/Community_Engagement_%28Product%29/Collaboration_process the title [[Community Engagement (Product)/Collaboration process/Draft]] has unnatural whitespace before the parenthesis.

Event Timeline

Nemo_bis raised the priority of this task from to Needs Triage.
Nemo_bis updated the task description. (Show Details)
Nemo_bis added a subscriber: Nemo_bis.

This looks really ugly for lists containig only one item with a space (at least in FF 41):

I can also observe this issue on the page in your screenshot on FF and Chrome as well. No idea why this is happening on that specific query but it doesn't always happen when there's only one item with a space. The only place where I could see this issue was the one which you linked. It does appear to be fixed in some column-gaps. Will investigate this more later and try to submit a fix.

So I think that the root issue here is that the browser is trying to render it as it would appear for 3 columns even if we've just one entry in the resultset. I tried playing around with the CSS but it doesn't appear correctly on all screens so I think the best thing to do here would be to just show a normal list if there's less than 3 entries. CategoryViewer also does this.

Change 252007 had a related patch set uploaded (by Glaisher):
Don't apply CSS columns if less than 3 results were found on AllPages & PrefixIndex

https://gerrit.wikimedia.org/r/252007

matmarex claimed this task.

Change 252007 merged by jenkins-bot:
Don't apply CSS columns if less than 3 results were found on AllPages & PrefixIndex

https://gerrit.wikimedia.org/r/252007

matmarex removed a project: Patch-For-Review.
matmarex set Security to None.