Page MenuHomePhabricator

Sorting chevron sometimes overlaps "Focus Area" header
Closed, ResolvedPublicBUG REPORT

Description

What is the problem?

In wish tables, the sorting chevron overlaps the header in the "Focus Area" column.

So far, I have only seen this happen on Chrome and Safari in Vector 2022 limited-width mode.

Steps to reproduce problem
  1. In Chrome or Safari, open https://wishlist-test.toolforge.org/wiki/Community_Wishlist?useskin=vector-2022
  2. Check that you are in "limited-width" mode (it should look like this screenshot)
    limited-width_annotated.png (1,759×1,009 px, 144 KB)
  3. Scroll down to "Recent wishes" and look at the "Focus Area" column
Environment

Browser: Chromium 120, Safari 17.
Skins: Vector 2022 narrow mode
Wiki(s): https://wishlist-test.toolforge.org/wiki/Community_Wishlist

Screenshots

focus_area_overlap.png (991×566 px, 83 KB)

QA Results - Wishlist-test.toolforge

ACStatusDetails
1✅T368367#9966438

Event Timeline

• Samwilson subscribed.

It looks like this is because we're overriding the padding on table headers, from the default of 21px provided by the jquery tablesorter plugin. Patch on its way.

It seems that the standard behaviour of MediaWiki sortable tables is to not move the sorting icons to the left for RTL scripts. I'm not sure this is really correct, and have opened T369592 to figure that out, but either way the WishlistIntake shouldn't do anything special I think.

The other issue we're getting is the difference between loading the gadget (whose CSS is flipped) and in development (where it's not because we're using mw.loader.load( 'http://localhost:5501/src/mediawiki-pages/MediaWiki:Gadget-WishlistIntake-pagestyles.css', 'text/css' );). That latter is now not needed as we're loading the WishlistIntake-pagestyles gadget always. I'll update the readme.

This bug should be fixed. Note that the sorting icons will always be on the right-hand side, even for RTL scripts, e.g. https://wishlist-test.toolforge.org/wiki/Community_Wishlist/ar

@Samwilson "Focus Area" sorting chevron no longer overlaps as seen in the gifs below. I will move this to Done. Thanks for all your work!

Test Result - Wishlist-test.toolforge

Status: ✅ PASS
Environment: Wishlist-test.toolforge
OS: macOS Sonoma 14.5
Browser: Chrome 126, Safari 17.5
Device: MBA
Emulated Device: NA

Test Artifact(s):

Test Steps
  1. In Chrome or Safari, open https://wishlist-test.toolforge.org/wiki/Community_Wishlist?useskin=vector-2022
  2. Check that you are in "limited-width" mode
  3. Scroll down to "Recent wishes" and look at the "Focus Area" column
LTRRTL
2024-07-09_10-39-14.mp4.gif (1,724×658 px, 722 KB)
2024-07-09_10-41-45.mp4.gif (1,714×660 px, 696 KB)