Page MenuHomePhabricator

Changing a value with unit: label and unit name mixed
Closed, ResolvedPublicBUG REPORT

Description

Changing a value with unit: label and unit name mixed, see screenshot.

Browser. Firefox 77

Try to change the length on https://commons.wikimedia.org/wiki/File:Ship_Josephine_ENI_05109590_-_on_Spree,_Berlin-7662.jpg

grafik.png (472×772 px, 20 KB)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Ramsey-WMF changed the subtype of this task from "Task" to "Bug Report".Jun 5 2020, 5:59 PM

@Ramsey-WMF or @mwilliams, do either of you have a mockup of how the editing UI is supposed to look in this situation? I can see that some absolutely-positioned label text for "unit" and "metre" is colliding here, but I want to make sure I understand what is supposed to go where before fixing.

@egardner It seems like it is supposed to look like this (height example):

Screen Shot 2020-06-08 at 1.57.39 PM.png (394×1 px, 48 KB)

The spacing there feels a bit weird though, I'd expect something like "Unit: Metre" since they look unrelated or two different things currently.

Ok, I think that the labelPosition: "before" option that's being set for the QuantityInputWidget's EntityAutoCompleteInputWidget child (QuantityInputWidget.js L34) might be the source of this problem.

By removing that option, you get the layout that you see below. Does this seem correct? (Disregard my nonsensical local data)

Screen Shot 2020-06-08 at 2.06.38 PM.png (708×1 px, 80 KB)

Screen Shot 2020-06-08 at 2.06.28 PM.png (710×1 px, 80 KB)

Change 603676 had a related patch set uploaded (by Eric Gardner; owner: Eric Gardner):
[mediawiki/extensions/WikibaseMediaInfo@master] Fix overlapping text in qualifier quantity input

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

Change 603676 merged by jenkins-bot:
[mediawiki/extensions/WikibaseMediaInfo@master] Fix overlapping text in qualifier quantity input

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

tested on production and the text no longer overlaps