Sidebar overlaps with a menu-bar
Problem
When you resize the sidebar it goes under the menu-bar (the header).
https://github.com/user-attachments/assets/a17b482f-8579-492f-9716-45779a965617
Steps
- Open https://rust-lang.github.io/mdBook/ or https://doc.rust-lang.org/book/.
- Resize the sidebar and look at where it meets the menu-bar.
Possible Solution(s)
We could make the sidebar be always on top of everything else. This means it would temporarily obscure the menu-bar.
Alternatively, make it so that menu-bar is resized linearly with the sidebar, without the "bounce" animation. With that the menu-bar and sidebar will never overlap.
Notes
No response
Version
The one used for https://rust-lang.github.io/mdBook/ at the time of writing this (a8aee21cd092e7d9bff3c7213c98adf1b9d13cfc).
I've deleted these 7 lines and here is the result. This might be a personal preference, but I do like it better this way.
https://github.com/user-attachments/assets/e406954e-8cea-4cb7-9088-a506f1f99b76
Found the same issue at https://cxx.rs/#example:
https://github.com/user-attachments/assets/6fce1b78-909b-43fe-adbe-a9f80c80908b
Found the same issue at https://nixos.org/guides/nix-pills/01-why-you-should-give-it-a-try: