Page MenuHomePhabricator

Revision Slider does not resize appropriately when moving main and tools menu to and from sidebar
Closed, ResolvedPublicBUG REPORT

Description

What is the problem?

Vector 2022 allows a user to move the main menu and the tools menu to and from the sidebar. If you do this with the Revisions Slider open, the Slider does not resize.

The effect can be quite dramatic as seen in the screenshots below.

Steps to reproduce problem
  1. https://en.wikipedia.org/w/index.php?diff=1155038775&oldid=1155038566&title=Paint_It_Black
  2. If the main menu and tools menu are not already hidden, click the "Hide" button (as highlighted in this screenshot)
    main_tools_menu_enwiki_highlighted.png (850×1 px, 181 KB)
  3. Open the revision slider (click "Browse history interactively")
  4. Move the main menu and tools menu back to the sidebar (click "Move to sidebar" as highlighted in the screenshots)
    main_menu_to_sidebar.png (669×1 px, 110 KB)
    tools_menu_to_sidebar.png (773×1 px, 131 KB)

Expected behavior: Revision Slider should be appropriately resized
Observed behavior: Revision Slider overlaps the tools menu

Similarly, if the main and tool menus are in the sidebar when you open the Revision Slider, if you hide the menus the Slider does not increase its width to match the contents.

Environment

Browser: Firefox 102, Chromium 112.
Wiki(s): https://en.wikipedia.org RevisionSlider – (50fe9c4) 10:49, 5 May 2023. Vector 1.0.0 (03570d4) 23:00, 8 May 2023.

Screenshots

revisions_slider_overlaps.png (832×1 px, 166 KB)

revisions_slider_overlaps_enwiki.png (850×1 px, 167 KB)

revisions_slider_narrow_enwiki.png (839×1 px, 125 KB)

Event Timeline

Change 930553 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/RevisionSlider@master] Add `overflow-x: clip` to minimize impact of resize issues

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

Change 930553 merged by jenkins-bot:

[mediawiki/extensions/RevisionSlider@master] Add `overflow-x: clip` to minimize impact of resize issues

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

Looks to me like this is already fixed on beta. I guess it will just take a few more days until it is live.

thiemowmde added a subscriber: Esanders.

Nice. Looks like this patch fixed it: https://gerrit.wikimedia.org/r/884289. Tracked via T328121. Not a duplicate, though. Let's close this when we verified it. It might be possible to do this locally, or just wait for the update on production.

Nice. Looks like this patch fixed it: https://gerrit.wikimedia.org/r/884289. Tracked via T328121. Not a duplicate, though. Let's close this when we verified it. It might be possible to do this locally, or just wait for the update on production.

The train went through and I don't see the issue fully fixed when I follow the example give in the description. :-/

Oh, I see. We are talking about two slightly different click-paths here. https://gerrit.wikimedia.org/r/884289 was about the full-width button at the very bottom of the skin. This triggers a resize event and works fine. But the same issue still exists when pinning one of the menus to the side. This also changes the width of the page but doesn't trigger a resize event.

Moving back.

Change 966852 had a related patch set uploaded (by WMDE-Fisch; author: WMDE-Fisch):

[mediawiki/skins/Vector@master] Trigger window.resize when toggeling pinnableElement

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

Change 966852 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Trigger window.resize when toggeling pinnableElement

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

WMDE-Fisch moved this task from Review to Done on the WMDE-TechWish-Maintenance-2023 board.
Tobi_WMDE_SW claimed this task.