Page MenuHomePhabricator

Template:Maplink cuts map thumbnail image width to map caption text length
Closed, ResolvedPublic

Description

On English Wikipedia Template:Maplink cuts map thumbnail image width to map caption text length. This results in the map image having smaller width than needed when text is short. When caption text has two lines then the image width is 100%.

Example - open this page on Wikipedia Android app (latest production version): https://en.wikipedia.org/wiki/User:Kozuch/Bug3

Event Timeline

can you add a screenshot ? not everyone has an android, let alone the same version of an Android phone. Screenshots probably easily communicate the problem.

LGoto triaged this task as Medium priority.May 1 2020, 4:15 PM
LGoto moved this task from Backlog to Needs Investigation on the Parsoid board.
Arlolra removed a project: Parsoid.
Arlolra subscribed.
TheDJ claimed this task.

Tested in iOS and Android. This no longer happens.

I'm remember I looked into this once before and back then I suspected that this was happening because the <a> element which contains the map used to be a background image without width/height attributes to properly size it without JS.

Since we now have an <img> element this problem no longer occurs.