Page MenuHomePhabricator

<inputbox> weird field alignment in inline mode, break=no
Closed, ResolvedPublic

Description

Mediawiki 1.26wmf17. If you use the break=no parameter the vertical and horizontal alignment of the inputfield and the buttons is weird. The weirdness depends on the type of the inputbox. Some use a blank between the inputbox and the button, some not. In some types for example "type=search" the vertical alignment of the buttons is a few pixels below that of the inputfield. In "type=search2" the fields are left aligned on the page, in all other types the fields are centered. For me type=search2 has the best looking vertical alignment but should be changed to centered alignment like the other types. In all other types the alignments should use that of type=search2. A testpage could be found here:
https://de.wiktionary.org/wiki/Benutzer:Formatierer/TestInputbox

Event Timeline

Formatierer raised the priority of this task from to Needs Triage.
Formatierer updated the task description. (Show Details)
Formatierer subscribed.

There seems to be a margin which should not be there when using break=no

.mw-inputbox-input {
   margin-bottom: 0.5em;
}

Maybe caused by https://gerrit.wikimedia.org/r/#/c/206613/

Sorry for that, i'll take a look to fix this. Thanks for reporting it!

Change 231395 had a related patch set uploaded (by Florianschmidtwelzow):
Don't add a margin if no line break is added between input and button

https://gerrit.wikimedia.org/r/231395

Change 231395 merged by jenkins-bot:
Don't add a margin if no line break is added between input and button

https://gerrit.wikimedia.org/r/231395

Please excuse the delay! :)

In Mediawiki 1.26wmf23 the vertical alignment is fixed, but still there is missing a blank between the inputfield and the button if type=create, comment or move