mdn / yari

The platform code behind MDN Web Docs
Mozilla Public License 2.0
1.16k stars 485 forks source link

ToC on left-hand side breaks sidebar scrolling #8628

Open wbamberg opened 1 year ago

wbamberg commented 1 year ago

Summary

When the ToC is on the left hand side, the sidebar doesn't scroll to show the current page.

URL

https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Tutorials/js13kGames/Installable_PWAs

(for example, but all pages are affected)

Reproduction steps

Visit https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Tutorials/js13kGames/Installable_PWAs with a browser window that's <1200 px wide.

Expected behavior

The sidebar should scroll so the current page is visible:

Screen Shot 2023-04-12 at 11 12 39 AM

Actual behavior

It doesn't:

Screen Shot 2023-04-12 at 11 13 48 AM

Device

Laptop

Browser

Firefox

Browser version

Pre-release (e.g. Beta, Nightly or Canary)

Operating system

Mac OS

Screenshot

See above ^.

Anything else?

No response

Validations

mirunacurtean commented 1 year ago

@wbamberg Could you please check if this still occurs? From what I remember it was happening across different OS types, and I can't reproduce it anymore on Windows on Firefox/ Chrome.

wbamberg commented 1 year ago

Could you please check if this still occurs?

Yes, it does.

caugner commented 1 week ago

I cannot reproduce this issue with the latest Chrome and Firefox versions on Mac OS.

@wbamberg Can you please check if this still occurs?