Skip to content
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

rustdoc: item-info is incorrectly wrapped on narrow screens #100369

Closed
jsha opened this issue Aug 10, 2022 · 0 comments · Fixed by #100718
Closed

rustdoc: item-info is incorrectly wrapped on narrow screens #100369

jsha opened this issue Aug 10, 2022 · 0 comments · Fixed by #100718
Labels
A-rustdoc-ui Area: Rustdoc UI (generated HTML) T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@jsha
Copy link
Contributor

jsha commented Aug 10, 2022

Steps to reproduce:

  1. Visit https://doc.rust-lang.org/nightly/std/os/unix/ucred/struct.UCred.html#structfield.pid
  2. Make the browser window narrow until the item-info ("This is a nightly-only experimental API...") starts wrapping.

Expected result: item-info wraps as normal text.

Actual result: item-info wraps like a table. See screenshot:

@jsha jsha added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. A-rustdoc-ui Area: Rustdoc UI (generated HTML) labels Aug 10, 2022
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Aug 20, 2022
[rustdoc] Fix item info display

Fixes  rust-lang#100369.

The solution I came up with was simply to wrap the "text part" of the `item-info` into another span so that `flex` wouldn't mess with it.

Live demo is [here](https://rustdoc.crud.net/imperio/fix-item-info/foo/struct.ItemInfo.html).

r? `@jsha`
@bors bors closed this as completed in aaa5574 Aug 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rustdoc-ui Area: Rustdoc UI (generated HTML) T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant