-
-
Notifications
You must be signed in to change notification settings - Fork 17.5k
code area isn't scrollable on mobile (rustdoc) #105580
Copy link
Copy link
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
Activity
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.
This code area isn't scrollable (horizontal scrolling):
https://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html
It seems like
contain: layouton 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:
However, I am not quite sure whether this offsets the improvements made in #102253.