-
Notifications
You must be signed in to change notification settings - Fork 13k
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 anchors display in rustdoc #87818
Conversation
Some changes occurred in HTML/CSS/JS. |
@camelid Is it good for you or is there something else to change? |
I'll try to review this by Wednesday. |
@bors r=camelid - this seems fine and we can make improvements in follow-ups. |
📌 Commit ea36352d6843b35f471afa29f0fab5524dcf93ea has been approved by |
Oh sorry, github glitched and didn't show me your last comment. @bors r- |
} | ||
.anchor.field { | ||
left: -5px; | ||
} | ||
.small-section-header > .anchor { | ||
left: -28px; | ||
padding-right: 10px; /* avoid gap that causes hover to disappear */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried out this change locally, and it all looks good, except that the gap that causes the hover to disappear has cropped up in the new version. Is it possible to get rid of the gap?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The gap only appears with headers like Implementations
, not with enum variants.
r=me after something like #87818 (comment) |
ea36352
to
a927d56
Compare
Done! Interestingly enough, I couldn't reproduce the issue on firefox. |
a927d56
to
dc24f02
Compare
@bors: r=camelid |
📌 Commit dc24f02 has been approved by |
…doc, r=camelid Fix anchors display in rustdoc Fixes rust-lang#87611 (it simplifies the positioning and fix the background). ![Screenshot from 2021-08-06 16-47-03](https://user-images.githubusercontent.com/3050060/128531105-61d1c21f-4a4d-4d68-aedf-9bfe0332f8ae.png) ![Screenshot from 2021-08-06 16-47-10](https://user-images.githubusercontent.com/3050060/128531109-b2ea8065-10b0-4400-9507-322122e42e78.png) ![Screenshot from 2021-08-06 16-47-14](https://user-images.githubusercontent.com/3050060/128531111-8a17cbdb-29e8-4baa-a0d6-81aa4f6ac6ed.png) r? `@camelid`
Hmm, I found the issue using Firefox. I discovered it by moving my mouse somewhat slowly—it doesn't happen when my mouse is moved quickly—so maybe when you were trying to reproduce it you were moving your mouse too fast? |
So my superhuman speed was the issue! 🤣 |
☀️ Test successful - checks-actions |
…laumeGomez Rollup of 10 pull requests Successful merges: - rust-lang#87818 (Fix anchors display in rustdoc) - rust-lang#87983 (Use more accurate spans when proposing adding lifetime to item) - rust-lang#88012 (Change WASI's `RawFd` from `u32` to `c_int` (`i32`).) - rust-lang#88031 (Make `BuildHasher` object safe) - rust-lang#88036 (Fix dead code warning when inline const is used in pattern) - rust-lang#88082 (Take into account jobs number for rustdoc GUI tests) - rust-lang#88109 (Fix environment variable getter docs) - rust-lang#88111 (Add background-color on clickable definitions in source code) - rust-lang#88129 (Fix dataflow graphviz bug, make dataflow graphviz modules public) - rust-lang#88136 (Move private_unused.rs test to impl-trait) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #87611 (it simplifies the positioning and fix the background).
r? @camelid