Last modified: 2014-09-11 10:34:19 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T72668, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70668 - Properly align language code cells in babel box
Properly align language code cells in babel box
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Babel (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-10 18:09 UTC by Waldir
Modified: 2014-09-11 10:34 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Waldir 2014-09-10 18:09:47 UTC
When the babel box features both languages that have 2-letter codes and languages that have 3-letter codes, the width of the code cells aren't the same and the result is quite ugly.

It should be possible (and would make more sense, IMO) for the extension to generate a single table, with each language getting a row, rather than each language getting its own table, as is the case currently. Then the native table layout code from the browser would align the first column.

An easier fix would be to simply add "display: inline-block;" to the span that surrounds the level (which was originally introduced solely to allow the level be hidden, in response to bug 17073, and didn't get any styles by default). This would allow the spans that don't fit inside the cell width (defined as div.mw-babel-box table th { width: 45px; }) to wrap to the next line.
Comment 1 Waldir 2014-09-10 18:23:46 UTC
(In reply to Waldir from comment #0)
> An easier fix would be to simply add "display: inline-block;" to the span
> that surrounds the level (which was originally introduced solely to allow
> the level be hidden, in response to bug 17073, and didn't get any styles by
> default). This would allow the spans that don't fit inside the cell width
> (defined as div.mw-babel-box table th { width: 45px; }) to wrap to the next
> line.

Btw, in that case, it would be necessary to add
div.mw-babel-box table th { line-height: 1em; }
to prevent the cells from expanding vertically (which doesn't break alignment, but isn't pretty either).

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links