code area isn't scrollable on mobile (rustdoc) #105580
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.
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:
However, I am not quite sure whether this offsets the improvements made in #102253.
The text was updated successfully, but these errors were encountered: