Page MenuHomePhabricator

[Bug] Sidebar Expand/Collapse button impacted by Narrow Width
Closed, ResolvedPublicBUG REPORT

Description

Steps to reproduce

  1. While logged in, navigate to a page in the beta cluster (collapsible sidebar should be enabled)
  2. Reduce the width of the browser so that the "Log out" link wraps to the next line

Expected results

  • The expand/collapse button for the sidebar should be clickable at or near the center

Actual results

  • The expand/collapse button clickable area is shifted to the left

Modification_de_Test_Page_for_VE_RW_—_Wikipedia_(1)-2.gif (480×356 px, 3 MB)

Environments observed

  • Browser version: Chrome Version 84.0.4147.89 (Official Build) (64-bit)
  • OS version: macOS Catalina 10.15.5
  • Device model: MBP
  • Device language: English

Check any additional observations

Developer Notes

  • This is caused by the absolutely positioned personal menu blocking the click target of the sidebar button. It is occurs as a result of the padding-left applied to .vector-menu-content-list which is made bigger when the personal menu becomes multiple lines (and blocks the click target even more).
  • The "correct" fix for this is moving the personal menu into the header and getting rid of the absolute positioning on the personal menu (e.g. looks like it is planned as part of T249363).
  • A quick fix might be to remove the padding on vector-menu-content-list. That causes the personal menu to overlap the logo more but is arguably better than the status quo of not being able to click the sidebar button.

QA Results - Beta

ACStatusDetails
1T258465#6391786

QA Results - Prod

ACStatusDetails
1T258465#6418304

Event Timeline

Just a note -- same happens on pl.wiki on Vector2/Timeless. Firefox 78.

obraz.png (935×1 px, 109 KB)

ovasileva raised the priority of this task from Medium to High.Jul 28 2020, 5:15 PM
nray renamed this task from [Bug] Sidebar Expand/Collapse button impacted by Narrow Width and VE to [Bug] Sidebar Expand/Collapse button impacted by Narrow Width.Jul 31 2020, 7:57 PM
nray updated the task description. (Show Details)
nray subscribed.

Updated title/description because I don't think VE is required for this bug to surface - AFAICT it happens on any page where the viewport is small enough to wrap the personal menu

nray updated the task description. (Show Details)
Jdlrobson changed the task status from Open to Stalled.Aug 4 2020, 12:13 AM
Jdlrobson subscribed.

This will be fixed by T249363 so let's please focus on that rather than patching the status quo.

Change 620133 had a related patch set uploaded (by Nray; owner: Nray):
[mediawiki/skins/Vector@master] Apply @min-width-supported to .mw-page-container

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

Change 620133 merged by jenkins-bot:
[mediawiki/skins/Vector@master] Apply @min-width-supported to .mw-page-container

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

Test Result - Beta

Status: ✅ PASS
Environment: beta
OS: macOS Catalina
Browser: Chrome
Device: MBP
Emulated Device: NA

Test Artifact(s):

QA steps
  1. While logged in, navigate to a page in the beta cluster (collapsible sidebar should be enabled)
  2. Reduce the width of the browser so that the "Log out" link wraps to the next line

✅ AC1: The expand/collapse button for the sidebar should be clickable at or near the center

Aug-17-2020 19-12-43.gif (552×640 px, 3 MB)

Not yet seeing the collapse button on prod. Poked around preferences to see if there was an option to enable it, but didn't see one 🧐. Guessing hasn't gone live yet... will circle back.

Test Result - Prod

Status: ✅ PASS
Environment: prod/enwiki
OS: macOS Catalina
Browser: Chrome
Device: MBP
Emulated Device: iPhone X
Test Artifact(s):

QA steps
  1. While logged in, navigate to a page in the beta cluster (collapsible sidebar should be enabled)
  2. Reduce the width of the browser so that the "Log out" link wraps to the next line

✅ AC1: The expand/collapse button for the sidebar should be clickable at or near the center

collapse-small.mov.gif (460×640 px, 774 KB)