yari icon indicating copy to clipboard operation
yari copied to clipboard

Make sidebar collapsible on medium-sized screens

Open ahelwer opened this issue 3 years ago • 3 comments

Summary

I have a monitor in portrait (vertical) orientation, which is very useful for reading documentation websites such as MDN. However, this means horizontal space is at a premium. With the new MDN design about a third of the horizontal space is taken up by the navigation sidebar + padding:

image

Contrast with the old design (from archive.org):

image

Many documentation websites & themes provide the ability to collapse the navigation sidebar for this reason. It would be nice if MDN did the same.

Where did you spot the bug?

All MDN documentation pages, for example https://developer.mozilla.org/en-US/docs/WebAssembly

What is the problem?

Lack of horizontal space caused by navigation sidebar makes website unusable on portrait (vertical) monitors.

What did you expect to happen?

I expected to be able to collapse the navigation sidebar so the content takes up the full horizontal space.

Steps to reproduce the issue

  1. Select your monitor orientation as portrait
  2. Visit a MDN page such as https://developer.mozilla.org/en-US/docs/WebAssembly

Environment

Firefox on Windows 10

Device

  • [x] Desktop
  • [ ] Mobile: ...
  • [ ] Tablet: ...
  • [ ] Other: ...

Browser

  • [ ] Chrome: (what version?)
  • [x] Firefox: 97.0.1
  • [ ] Safari: (what version?)
  • [ ] Other: (what browser / version?)

Operating system

  • [x] Windows: 10
  • [ ] Mac OS: (what version?)
  • [ ] Linux: (what distribution / version?)

Screenshots

image

ahelwer avatar Mar 02 '22 15:03 ahelwer

Thank you for reporting @ahelwer

schalkneethling avatar Mar 02 '22 15:03 schalkneethling

@ahelwer Can you share what resolution you're using on the vertical monitor?

PS: As a workaround, you could zoom in to 120-130% to trigger mobile mode.

caugner avatar Sep 14 '22 16:09 caugner

2160p

ahelwer avatar Sep 14 '22 20:09 ahelwer

Is there any update on this? The current design is just annoying. more than a fifth of vertical space is taken by the fixed header and a third of horizontal space by the side bar.

image

mfiro avatar Jan 28 '23 10:01 mfiro