Rustdoc mobile: put out-of-band info on its own line by jsha · Pull Request #92861 · rust-lang/rust (original) (raw)
@GuillaumeGomez I decided to make some changes so this would work better and more consistently. They're substantive changes, so this will need a re-review.
The problem with the old way: Sometimes, even on a medium-sized screen (>700px), a type name will be long enough to bump into the out-of-band
info. We'd like that situation to also bump out-of-band
onto the next line.
To do that, I added flex-wrap: wrap
on .main-heading
, and set the spacing using justify-content: space-between
rather than margin-left: auto
(which would have caused out-of-band
to stay flush-right even after it wrapped).
Here's an example of a name long enough to cause wrapping even on a >700px screen:
https://rustdoc.crud.net/jsha/mobile-column-flex/core/arch/x86/fn._mm512_test_epi16_mask.html