Rustdoc: overflowing supertraits should wrap, not scroll #127398
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.
T-rustdoc-frontend
Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.
See e.g. https://docs.rs/num/latest/num/traits/int/trait.PrimInt.html, there are four horizontal pages listing the supertraits:
By contrast, rustfmt splits these into separate lines:
Splitting into lines would make this easier to navigate. If vertical space consumption is a concern, maybe lengthy supertrait lists could be made collapsible (like methods currently are).
Somewhat related to #107283, but this seems to be a different variant of that problem.
The text was updated successfully, but these errors were encountered: