-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Rustdoc mobile: put out-of-band info on its own line #92861
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Some changes occurred in HTML/CSS/JS. |
This comment has been minimized.
This comment has been minimized.
Looks good to me! Please fix the GUI test and then I can take a last look. |
6643414
to
eb1c38f
Compare
GUI test added! |
c11a3cb
to
1164741
Compare
r=me when #92830 is merged. |
☔ The latest upstream changes (presumably #93021) made this pull request unmergeable. Please resolve the merge conflicts. |
1164741
to
b3ff7ae
Compare
@bors r=GuillaumeGomez rollup |
📌 Commit b3ff7aec8fb071fa10da497171957bc90ab81ba4 has been approved by |
…askrgr Rollup of 9 pull requests Successful merges: - rust-lang#90782 (Implement raw-dylib support for windows-gnu) - rust-lang#91150 (Let qpath contain NtTy: `<$:ty as $:ty>::…`) - rust-lang#92425 (Improve SIMD casts) - rust-lang#92692 (Simplify and unify rustdoc sidebar styles) - rust-lang#92780 (Directly use ConstValue for single literals in blocks) - rust-lang#92924 (Delete pretty printer tracing) - rust-lang#93018 (Remove some unused `Ord` derives based on `Span`) - rust-lang#93026 (fix typo in `max` description for f32/f64) - rust-lang#93035 (Fix stdarch submodule pointing to commit outside tree) Failed merges: - rust-lang#92861 (Rustdoc mobile: put out-of-band info on its own line) r? `@ghost` `@rustbot` modify labels: rollup
☔ The latest upstream changes (presumably #93048) made this pull request unmergeable. Please resolve the merge conflicts. |
b3ff7ae
to
17a06da
Compare
@GuillaumeGomez I decided to make some changes so this would work better and more consistently. They're substantive changes, so this will need a re-review. The problem with the old way: Sometimes, even on a medium-sized screen (>700px), a type name will be long enough to bump into the To do that, I added Here's an example of a name long enough to cause wrapping even on a >700px screen: https://rustdoc.crud.net/jsha/mobile-column-flex/core/arch/x86/fn._mm512_test_epi16_mask.html |
☔ The latest upstream changes (presumably #93069) made this pull request unmergeable. Please resolve the merge conflicts. |
cb9254e
to
096ebc3
Compare
Before this, the item name and the stability, source link, and "collapse all docs" would compete for room on a single line, resulting in awkward wrapping behavior on mobile. This gives a separate line for that out-of-band information. It also removes the "copy path" icon on mobile to make a little more room. Also, switch to flex-wrap: wrap, so anytime there's not enough room for `source`, it gets bumped to the next line.
096ebc3
to
152e888
Compare
Thanks! @bors: r+ rollup |
📌 Commit 152e888 has been approved by |
…askrgr Rollup of 13 pull requests Successful merges: - rust-lang#89747 (Add MaybeUninit::(slice_)as_bytes(_mut)) - rust-lang#89764 (Fix variant index / discriminant confusion in uninhabited enum branching) - rust-lang#91606 (Stabilize `-Z print-link-args` as `--print link-args`) - rust-lang#91694 (rustdoc: decouple stability and const-stability) - rust-lang#92183 (Point at correct argument when async fn output type lifetime disagrees with signature) - rust-lang#92582 (improve `_` constants in item signature handling) - rust-lang#92680 (intra-doc: Use the impl's assoc item where possible) - rust-lang#92704 (Change lint message to be stronger for &T -> &mut T transmute) - rust-lang#92861 (Rustdoc mobile: put out-of-band info on its own line) - rust-lang#92992 (Help optimize out backtraces when disabled) - rust-lang#93038 (Fix star handling in block doc comments) - rust-lang#93108 (:arrow_up: rust-analyzer) - rust-lang#93112 (Fix CVE-2022-21658) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
rustdoc: remove dashed underline under main heading This was removed in rust-lang#92797 but accidentally re-introduced by a bad merge in rust-lang#92861. r? `@camelid`
rustdoc: remove dashed underline under main heading This was removed in rust-lang#92797 but accidentally re-introduced by a bad merge in rust-lang#92861. r? ``@camelid``
rustdoc: remove dashed underline under main heading This was removed in rust-lang#92797 but accidentally re-introduced by a bad merge in rust-lang#92861. r? ```@camelid```
Before this, the item name and the stability, source link, and "collapse
all docs" would compete for room on a single line, resulting in awkward
wrapping behavior on mobile. This gives a separate line for that
out-of-band information. It also removes the "copy path" icon on mobile
to make a little more room.
Demo: https://rustdoc.crud.net/jsha/mobile-column-flex/std/string/struct.String.html
r? @GuillaumeGomez