-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix rustdoc sidebar z-index #59973
Fix rustdoc sidebar z-index #59973
Conversation
Some changes occurred in HTML/CSS. |
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @GuillaumeGomez (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
How do you get the sidebar overlap with the content? That seems like a bug. |
there are long blocks at the main content section (https://docs.rs/nom/4.2.3/nom/#macros). By the way, the sidebar should be higher than the main content, right? |
Oh, okay, you have to scroll sideways with a small window. The description for "Modules" is wrapping correctly, so there must still be another bug regarding the description of macros (and potentially other things). We still might want to merge the z-index change though. |
This isn't a good solution. We'd better set a max-width to the main container instead of playing with z-index. |
Did you refresh the cached page (with Ctrl-F5 on Firefox)? |
By adding a little spacing between two code blocks docs maybe? |
Yes, those descriptions should wrap like other descriptions, but the docs themselves could be improved by splitting them up. If the first paragraph is too long it always looks bad when rendered. |
If we set the "position: fixed" and do not specify the z-index, the render priority will be determined based on the order in the DOM. Why is an explicit sidebar positioning isn't a good solution?
Changes of word-wrapping should be in another pull request, yea? |
No, the same is fine. |
Thanks! @bors: r+ rollup |
📌 Commit 9e17193 has been approved by |
…umeGomez Fix rustdoc sidebar z-index I think the screenshot will say everything: ![image](https://user-images.githubusercontent.com/2884517/56098429-37fa3680-5f09-11e9-8c54-4e2548aa0818.png) live example: https://docs.rs/nom/4.2.3/nom/ I chose the smallest z-index to avoid problems with other blocks.
…umeGomez Fix rustdoc sidebar z-index I think the screenshot will say everything: ![image](https://user-images.githubusercontent.com/2884517/56098429-37fa3680-5f09-11e9-8c54-4e2548aa0818.png) live example: https://docs.rs/nom/4.2.3/nom/ I chose the smallest z-index to avoid problems with other blocks.
Rollup of 6 pull requests Successful merges: - #59717 (improve docs for std::hint::unreachable_unchecked()) - #59903 (Continue evaluating after missing main) - #59973 (Fix rustdoc sidebar z-index) - #59992 (rustdoc: use --static-root-path for settings.js) - #59993 (include mode in unused binding suggestion span) - #60000 (Add repo-specific triagebot configuration) Failed merges: r? @ghost
I think the screenshot will say everything:
live example: https://docs.rs/nom/4.2.3/nom/
I chose the smallest z-index to avoid problems with other blocks.