alt= text for language chart makes pages very wide

Bug #46686 reported by Matthew Paul Thomas
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

With images turned off in a browser that supports alt= text, a page like <https://launchpad.net/distros/ubuntu/dapper/+lang/pt_BR> is very wide, because the alternate text for the chart does not wrap.

Changed in rosetta:
status: Unconfirmed → Confirmed
Revision history for this message
LKRaider (paul-eipper) wrote :

Confirmed here on Firefox with image loading turned off.

The cell is styled as "white-space: nowrap;", could it not be so?

Revision history for this message
Christian Reis (kiko) wrote :

The problem with that is that the bar is actually formed from a number of small images, and if we allow wrapping there, it will end up wrapping the images when they are displayed.

One workaround would be to remove the alt="" attributes and then add an additional, invisible image to each cell that was not no-wrapped and that had a single alt="" attribute containing the full comment.

Revision history for this message
Christian Reis (kiko) wrote :

If we do fix that we should try to also fix the fact that we have two sortkey spans in the status cell -- just look at the HTML generated:

<td span style="white-space: nowrap">

          <span class="sortkey">100.0</span>

          <span style="white-space: nowrap"><span class="sortkey">000.00</span>

<img src="/@@/green-bar.png"
[...]

Revision history for this message
Christian Reis (kiko) wrote :

Matsubara also has a workaround landed that uses % instead of "percent". But I guess the proper fix lies in my suggestions above.

Changed in rosetta:
importance: Medium → Low
tags: added: ui
Huw Wilkins (huwshimi)
tags: added: easy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.