You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 90cfa08
Browse filesBrowse the repository at this point in the historyBrowse files
Fix the reference sidebar and scrolling, table line breaks and the mobile menu (#242)
* Mark the current page in the reference sidebar
trailingSlash: true gives usePathname() a trailing slash that the sidebar's hrefs lack, so no entry has matched since, and the sidebar never scrolled to the current one.
Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
* Scroll reference pages with the window, with a sticky sidebar
The 100vh pane started below the banner and navbar, so its last ~100px sat below the fold, the window and the article scrolled separately, and the navbar covered the pane's top once the window moved.
Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
* Render <br> in Markdown as a line break
react-markdown prints raw HTML as text, so the $densify Limitations table showed literal <br>. Only <br> is converted; other HTML stays escaped.
Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
* Fit the mobile menu to the screen and close it on navigation
The open menu had no height limit inside the sticky nav, so on short screens its last links were out of reach. It also stayed open after Escape, the logo, or Back.
Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
---------
Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
Co-authored-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
0 commit comments