Page MenuHomePhabricator

Edit summary label is last-line justified when "justify paragraphs" is enabled
Closed, DeclinedPublic

Description

Author: x42bn6

Description:
On Firefox 3.5.2, the edit summary label stretches itself across the page (i.e. last line justified) when "Justify paragraphs" is enabled in the user preferences.

WP:VPT: http://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_%28technical%29&oldid=307440890#Edit_summary_label_justified_looks_silly_on_Firefox_3.5.2

Screenshot: http://img297.imageshack.us/img297/4881/justify.png

Don't know if it is problematic on other browsers like IE8 because my IE8 has decided to act up again.

Steps to reproduce:

  1. Enable "Justify paragraphs" in the user preferences
  2. Be bold and edit something
  • x42bn6

Version: unspecified
Severity: enhancement

Details

Reference
bz20184

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:57 PM
bzimport set Reference to bz20184.
bzimport added a subscriber: Unknown Object (MLST).
  • Bug 23627 has been marked as a duplicate of this bug. ***

This is because both the label and the following input field are inline (the input actually behaves just like a single very long word). What browsers do if the label contains text that is long enough to push the input field to the next line is correct: They can't break the input field between lines and therefore justify the label by inserting large amount of space.

Possible workaround:

.editOptions { text-align: left }
.rtl .editOptions { text-align: right }

Another approach is to change the label and/or the input field from inline to block, but that would make it look different in cases where the label would be short enough to fit on a single line together with the input field.

The preference was just recently removed (bug 52810), I guess that makes this a WONTFIX.