mdBook icon indicating copy to clipboard operation
mdBook copied to clipboard

Sidebar overlaps with a menu-bar

Open nikableh opened this issue 1 year ago • 3 comments

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

  1. Open https://rust-lang.github.io/mdBook/ or https://doc.rust-lang.org/book/.
  2. 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).

nikableh avatar May 11 '25 10:05 nikableh

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

nikableh avatar May 11 '25 10:05 nikableh

Found the same issue at https://cxx.rs/#example:

https://github.com/user-attachments/assets/6fce1b78-909b-43fe-adbe-a9f80c80908b

nikableh avatar Jun 19 '25 13:06 nikableh

Found the same issue at https://nixos.org/guides/nix-pills/01-why-you-should-give-it-a-try:

Image

nikableh avatar Jun 22 '25 10:06 nikableh