Page MenuHomePhabricator

Content Translation looks broken on desktop in multiple languages (November 21, 2024)
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Log in to the French Wikipedia.
  • Click the person icon at the top right.
  • Click "Traductions".
  • Click the blue button to start a translation.
  • Select an article to start a translation.

What happens?:

צילום מסך מ־2024-11-21 08-25-59.png (867×1 px, 31 KB)

Most of the screen is blank and some broken narrow letters are seen here and there.

What should have happened instead?:

The content translation interface should appear with visible columns.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Current production Wikimedia.

Other information (browser name/version, screenshots, etc.):

This also happens in Hebrew, Hindi, and some other languages.

Event Timeline

Amire80 triaged this task as Unbreak Now! priority.Thu, Nov 21, 1:38 PM

I'm guessing this change to the horizontal layout is the culprit @Amire80 @SBisson

Hmm, sorry about that. There's probably a simple fix, I'll have a look and propose a patch.

The issue is caused due to this change:

HorizontalLayout: Use flexbox to avoid extra vertical margin (Bartosz Dziewoński)

CX uses HorizontalLayout: https://github.com/wikimedia/mediawiki-extensions-ContentTranslation/blob/master/modules/ui/mw.cx.ui.TranslationView.js

Change #1093925 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/ContentTranslation@master] Fix layout broken by display:flex on HorizontalLayout

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

This is just a quick workaround. It would be great if you could have a closer look at the various margins and other spacing, and the other places in the code that use HorizontalLayout, and make sure everything looks right. I only know a little about CX myself.

Change #1093927 had a related patch set uploaded (by Abijeet Patro; author: Bartosz Dziewoński):

[mediawiki/extensions/ContentTranslation@wmf/1.44.0-wmf.4] Fix layout broken by display:flex on HorizontalLayout

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

Change #1093925 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Fix layout broken by display:flex on HorizontalLayout

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

Change #1093932 had a related patch set uploaded (by Reedy; author: Bartosz Dziewoński):

[mediawiki/extensions/ContentTranslation@REL1_43] Fix layout broken by display:flex on HorizontalLayout

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

Change #1093927 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@wmf/1.44.0-wmf.4] Fix layout broken by display:flex on HorizontalLayout

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

Mentioned in SAL (#wikimedia-operations) [2024-11-21T15:24:06Z] <kartik@deploy2002> Started scap sync-world: Backport for [[gerrit:1093927|Fix layout broken by display:flex on HorizontalLayout (T380471)]], [[gerrit:1093928|Revert "ExperimentUserDefaultsManager: use read latest when retrieving central id"]]

Mentioned in SAL (#wikimedia-operations) [2024-11-21T15:29:10Z] <kartik@deploy2002> abi, sgimeno, kartik: Backport for [[gerrit:1093927|Fix layout broken by display:flex on HorizontalLayout (T380471)]], [[gerrit:1093928|Revert "ExperimentUserDefaultsManager: use read latest when retrieving central id"]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-11-21T15:39:58Z] <kartik@deploy2002> Finished scap sync-world: Backport for [[gerrit:1093927|Fix layout broken by display:flex on HorizontalLayout (T380471)]], [[gerrit:1093928|Revert "ExperimentUserDefaultsManager: use read latest when retrieving central id"]] (duration: 15m 51s)

SBisson lowered the priority of this task from Unbreak Now! to High.Thu, Nov 21, 3:44 PM

The issue is fixed but keeping this task open to track further testing and potential fixes to horizontal layouts in CX.

Change #1093932 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@REL1_43] Fix layout broken by display:flex on HorizontalLayout

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

Thank you for backporting the fix!

abi_ set the point value for this task to 2.Fri, Nov 22, 1:59 PM

Scoping this to make sure that the padding and margins post the fix are the same as before.

Will create a follow up task to evaluate the use of HorizontalLayout