Comment 6 for bug 131012

Revision history for this message
Björn Tillenius (bjornt) wrote : Re: [Bug 131012] Re: Bug tags portlet cuts off part of the numbers

On Thu, Jan 31, 2008 at 07:10:05PM -0000, Matthew Paul Thomas wrote:
> The problem occurs because the tags are presented as a table with two
> columns. In an HTML table, each column must be at least as wide as the
> longest word it contains. For <https://bugs.edge.launchpad.net/bzr> in
> Gecko browsers (e.g. Firefox), this means the first column must be at
> least as wide as "requires-mapping-upgrade". In Presto browsers (i.e.
> Opera), words can wrap on hyphens, so the problem doesn't occur right
> now; but it could if someone introduced a similarly long tag without any
> hyphens in it.

Oh, right. I was hoping this would be a CSS problem.

> We could try to make the Tags box (and all other portlets) wider. We
> could use an even smaller font for tag names. We could try to persuade
> Gecko to break words on hyphens too. But none of those would solve the
> problem: it would still be possible to come up with a tag name that was
> so wide that it pushed the tag counts out of sight. Solutions that
> *would* solve the problem include breaking long tag names, as we did for
> other text in bug 929; and not using a table to show tag counts in the
> first place.

Another solution is to cut off long tag names. E.g.,
'this-is-a-long...'.