Page MenuHomePhabricator

Special:CheckUser: Clicking "copy" scrolls off the page
Closed, ResolvedPublicBUG REPORT

Description

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

  • Set the interface language to a RTL written language in Special:Preferences
  • Go to Special:CheckUser, and get the actions of a certain user
  • Under "See results in a table", click the "copy" button

What happens?:
It does get copied, but the wikitext box is far away on the page, and if the CU wants to go back to see the table, they need to scroll a lot sideways to get back to the page.

What should have happened instead?:
It should be like in ltr languages, where this box doesn't appear.

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

image.png (1,918×997 px, 25 KB)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
neriah moved this task from Untriaged to RTL on the I18n board.
• Dreamy_Jazz subscribed.

This is a bug with the mw.widgets.CopyTextLayout component from OOUI, as it provides the mechanism for copying

Change #1341099 had a related patch set uploaded (by Neriah; author: Neriah):

[mediawiki/extensions/CheckUser@master] CU: use native clipboard API for copy button

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

Change #1341099 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] CU: use native clipboard API for copy button

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

Change #1341410 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] checkUserHelper: Add QUnit tests for addCopyElement.js

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

Created some QUnit tests for the modified JS code

Change #1341410 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] checkUserHelper: Add QUnit tests for addCopyElement.js

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

neriah removed a project: I18n.