Page MenuHomePhabricator

Suggestion: Flip legend keys for inline diff
Closed, ResolvedPublicBUG REPORT

Description

In T350181#9526951, @Nux wrote:

Could you flip the legend in HTML? I think "removed" belongs on the left side, and this is where inline diff puts "removed".

I have CSS for that, but I think it would be better to do it in the structure.

obraz.png (475×924 px, 40 KB)

.mw-diff-inline-legend {
	display:flex;
	flex-direction: row-reverse;
}

QA Results - Beta

Event Timeline

@Aklapper curiously, what makes this fall on Community Tech's radar?

Change 1003583 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/core@master] diff: Change order of inline diff legend elements

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

Samwilson subscribed.

@JWheeler-WMF CommTech added the inline diff legend as part of Better-Diffs-2023.

This is a simple change; I've made a patch.

Change 1003583 merged by jenkins-bot:

[mediawiki/core@master] diff: Change order of inline diff legend elements

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

@Samwilson "Content deleted" is now to the left for the inline diff legend as seen in the screenshot. This will move to Done. Thanks for all your work!

Status: ✅PASS
Environment: Beta: 1.42.0-alpha (1cc8210)
OS: macOS Sonoma 14.2.1
Browser: Chrome 121, Firefox 123, Safari 17.3, Edge 121
Skins. Vector 2022, Vector 2010, Minerva, Monobook, Timeless
Device: MBA M2
Emulated Device:: n/a
Test Links:
https://en.wikipedia.org/w/index.php?title=File%3AMediawiki_diffView.JPG&diff=449475711&oldid=449471099
https://en.wikipedia.beta.wmflabs.org/w/index.php?title=File%3AFedov_31.jpg&diff=614265&oldid=614264

✅AC1: https://phabricator.wikimedia.org/T352491

PreviousLatest Patch
2024-02-15_12-20-12.png (1×2 px, 329 KB)
2024-02-15_12-19-42.png (973×2 px, 229 KB)
MusikAnimal claimed this task.
MusikAnimal reassigned this task from MusikAnimal to Samwilson.
MusikAnimal subscribed.

@Aklapper curiously, what makes this fall on Community Tech's radar?

@JWheeler-WMF Hi! Herald. (For venues to bring up general questions about Phabricator, please see the links on the frontpage - thanks a lot!)