Page MenuHomePhabricator

Glosses get double margin-right because of duplicated div
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

What happens?:
The field with the actual gloss is way too narrow. It happens because a div.wikibase-lexeme-sense-glosses (which has margin-right: 252px;) for some reason is wrapped in another div.wikibase-lexeme-sense-glosses, resulting in a total margin-right of 504px.

What should have happened instead?:

  • Only one div.wikibase-lexeme-sense-glosses

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
Wikidata production

Event Timeline

jhsoby updated the task description. (Show Details)

It happens because a div.wikibase-lexeme-sense-glosses … for some reason is wrapped in another div.wikibase-lexeme-sense-glosses

Probably due to Use createMwApp() instead of new Vue(), changing the mounting behavior. Shouldn’t be too hard to fix+backport tomorrow.

Change 745481 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/WikibaseLexeme@master] Fix LexemeHeader and GlossWidget mounting

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

Change 745372 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/WikibaseLexeme@wmf/1.38.0-wmf.12] Fix LexemeHeader and GlossWidget mounting

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

Change 745372 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@wmf/1.38.0-wmf.12] Fix LexemeHeader and GlossWidget mounting

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

Mentioned in SAL (#wikimedia-operations) [2021-12-09T11:07:47Z] <lucaswerkmeister-wmde@deploy1002> Synchronized php-1.38.0-wmf.12/extensions/WikibaseLexeme/resources/widgets/: Backport: [[gerrit:745372|Fix LexemeHeader and GlossWidget mounting (T297328)]] (duration: 01m 06s)

The master change is still open due to CI issues, will investigate. Should be fixed in production for now, though.

Change 745481 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@master] Fix LexemeHeader and GlossWidget mounting

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

@Lucas_Werkmeister_WMDE: I just tried this and it still seems to be an issue. Can you confirm this?

Thank you for checking! I have avoided getting familiar with Lexemes so far, so I did not know how it should look like.

Speaking of very narrow: The input field for the Lemma looks a bit off as well. But admittedly, I chose a very long word and don't know how this was intended to look like. :)

image.png (256Γ—805 px, 18 KB)

image.png (200Γ—792 px, 11 KB)

Lemmas have always looked like this, let’s not turn this into a general WikibaseLexeme UI review πŸ˜…

@jhsoby can you paste the screenshot you’d posted in Telegram, of what it looked like with the bug?

IMG_20211210_174513_733.jpg (167Γ—941 px, 6 KB)

That's definitely fixed, yeah. 😊 Lemma input is narrow, but always has been, so not a new issue.

let’s not turn this into a general WikibaseLexeme UI review πŸ˜…

Haha, fair! That was not my intention, lets close this one! \o/

Thank you @jhsoby!