-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Labels
A-rustdoc-uiArea: Rustdoc UI (generated HTML)Area: Rustdoc UI (generated HTML)T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
This code area isn't scrollable (horizontal scrolling):
https://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html
It seems like contain: layout
on the <details>
caused this. This got introduced here #102253 (cc @jsha).
We can make this work by making the parent <code>
behave like a block but still being inline (inline-block
).
Something like this should fix this:
pre > code {
display: inline-block;
}
However, I am not quite sure whether this offsets the improvements made in #102253.
Metadata
Metadata
Assignees
Labels
A-rustdoc-uiArea: Rustdoc UI (generated HTML)Area: Rustdoc UI (generated HTML)T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.