expressjs.com icon indicating copy to clipboard operation
expressjs.com copied to clipboard

Make full size nav breakpoint max of 960px

Open chrisdel101 opened this issue 1 year ago • 5 comments

In #1590 I noted this issue.

Having the nav bar squish at this large breakpoint makes it both:

  • Annoying to use on a laptop, where the screen size is often set to around 850px (864px for me). User always has to manually open the nav to use it.
  • Makes it way harder to do development on laptop since full nav and dev tools do not fit on the screen together.

Breakpoint to full nav should kick in between 768-850px like before. Since the links do not fit at these sizes, was reason this change was made, fix needs to implement some solution to hide certain links (or something) to make this work.

chrisdel101 avatar Nov 30 '24 17:11 chrisdel101

Links should not be hidden directly; the option to continue viewing those links should be added through a button. One idea is how GitHub handles it: image image

bjohansebas avatar Dec 01 '24 23:12 bjohansebas

The design broke again, but the good thing is that now we only need to make changes in a single file to modify the header.

Image

bjohansebas avatar Feb 08 '25 00:02 bjohansebas

Hey @bjohansebas, looks like I'll be around for another week or so before being away for a bit.

Going to draft up the #1780 approach here to see how that works. Seems like a better idea rn, as long as nested dropdowns don't get too messy.

chrisdel101 avatar Feb 16 '25 13:02 chrisdel101

@bjohansebas Is this still relevant/useful as an enchantment? due to the lengthy delay on my end I wanted to check before continuing work on it, or see what you thought.

chrisdel101 avatar May 28 '25 04:05 chrisdel101

Well, the menu will actually be moved to the left, as is done in other documentation sites. However, we still don't have the new design, and it might take some time before that happens (hopefully not too long, https://github.com/expressjs/expressjs.com/issues/1787). Either way, we still need to fix the current issues, so go ahead, please fix it.

bjohansebas avatar May 28 '25 05:05 bjohansebas