Uh oh!
There was an error while loading. Please reload this page.
rustdoc: remove old CSS selector that causes weird spacing - #101335
Conversation
rustbot
commented
Sep 2, 2022
Some changes occurred in HTML/CSS/JS. cc @GuillaumeGomez, @Folyd, @jsha |
rust-highfive
commented
Sep 2, 2022
r? @jsha (rust-highfive has picked a reviewer for you, use r? to override) |
GuillaumeGomez
commented
Sep 2, 2022
Thanks! r=me once CI pass. |
notriddle
commented
Sep 2, 2022
@GuillaumeGomez Never mind. I misunderstood some of the code (confused Turns out you can still get this CSS reachable. |
notriddle
commented
Sep 2, 2022
@GuillaumeGomez However, I'm a bit curious if we actually want this CSS here. It still seems outdated, because when I manage to trigger it, the results look worse to me than if it were gone. |
GuillaumeGomez
commented
Sep 2, 2022
If it creates ugly output when triggered, I'd say it's possible if it gets removed. |
GuillaumeGomez
commented
Sep 2, 2022
r=me once CI pass then! |
notriddle
commented
Sep 2, 2022
@GuillaumeGomez I posted some screenshots and links to samples. Do you think the "this is what we get if we merge this PR" version looks better than the old one? |
.methods > .item-infoIt was added with e08a84a (actually, it was called `.methods > .stability` at the time) and was directly nested that way. But with the switch to `<details>`, the code has changed drastically out from under it, to the point where you have to go out of your way to actually get it to render this way, and the result looks overly-tight and weird alongside the normal version where this code is not reachable.
3f070c4 to
df09047CompareGuillaumeGomez
commented
Sep 2, 2022
Oh I see. So it has an impact when there is no doc block. Maybe we need to update: .content .impl-items> .item-info {
margin-left:32px;
}so they still are aligned? Adding a GUI test for it would be nice too. |
GuillaumeGomez
commented
Sep 2, 2022
Can upload the updated version too please? |
notriddle
commented
Sep 2, 2022
@GuillaumeGomez It's uploaded. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
GuillaumeGomez
commented
Sep 2, 2022
Apart from the small potential improvement in the GUI test, looks great! 👍 |
0d59fe3 to
17622fcCompare17622fc to
0f29824CompareGuillaumeGomez
commented
Sep 2, 2022
Thanks! r=me once CI pass |
notriddle
commented
Sep 2, 2022
@bors r+ rollup |
bors
commented
Sep 2, 2022
…ity, r=notriddle rustdoc: remove old CSS selector that causes weird spacing It was added with e08a84a (actually, it was called `.methods > .stability` at the time) and was directly nested that way. **EDIT**: It is technically reachable code still, but it seems wrong. ## With the old CSS rule still present https://notriddle.com/notriddle-rustdoc-test/weird-spacing/lib/struct.Foo.html  ## Version 2 (an older version of this PR) https://notriddle.com/notriddle-rustdoc-test/normal-spacing-2/lib/struct.Foo.html  ## Version 3 (with alignment fix for mobile) https://notriddle.com/notriddle-rustdoc-test/normal-spacing-3/lib/struct.Foo.html 
…ity, r=notriddle rustdoc: remove old CSS selector that causes weird spacing It was added with e08a84a (actually, it was called `.methods > .stability` at the time) and was directly nested that way. **EDIT**: It is technically reachable code still, but it seems wrong. ## With the old CSS rule still present https://notriddle.com/notriddle-rustdoc-test/weird-spacing/lib/struct.Foo.html  ## Version 2 (an older version of this PR) https://notriddle.com/notriddle-rustdoc-test/normal-spacing-2/lib/struct.Foo.html  ## Version 3 (with alignment fix for mobile) https://notriddle.com/notriddle-rustdoc-test/normal-spacing-3/lib/struct.Foo.html 
…iaskrgr Rollup of 4 pull requests Successful merges: - rust-lang#101335 (rustdoc: remove old CSS selector that causes weird spacing) - rust-lang#101347 (ffx component run should provide a collection) - rust-lang#101364 (Shrink suggestion span of argument mismatch error) - rust-lang#101365 (remove redundant clones) Failed merges: - rust-lang#101349 (rustdoc: remove `.impl-items { flex-basis }` CSS, not in flex container) r? `@ghost` `@rustbot` modify labels: rollup
It was added with e08a84a (actually, it was called
.methods > .stabilityat the time) and was directly nested that way.EDIT: It is technically reachable code still, but it seems wrong.
With the old CSS rule still present
https://notriddle.com/notriddle-rustdoc-test/weird-spacing/lib/struct.Foo.html
Version 2 (an older version of this PR)
https://notriddle.com/notriddle-rustdoc-test/normal-spacing-2/lib/struct.Foo.html
Version 3 (with alignment fix for mobile)
https://notriddle.com/notriddle-rustdoc-test/normal-spacing-3/lib/struct.Foo.html