1
Fork 0
rust/src/librustdoc/html/render
Dylan DPC 84e1aa2d59
Rollup merge of #95684 - GuillaumeGomez:fix-item-info-overflow, r=notriddle
rustdoc: Fix item info display overflow

I came across this issue when reading local `Iterator` docs (reproduced in this screenshot):

![Screenshot from 2022-04-05 17-45-13](https://user-images.githubusercontent.com/3050060/161798150-769ee838-4768-4df8-9d34-b02eb8104eed.png)

The problem comes from the fact that `span` isn't `display: block` by default. Since `item-info` was already present on `<div>` in other places, I moved the last one to `div` as well.

r? `@notriddle`
2022-04-06 03:39:08 +02:00
..
context.rs librustdoc: adopt let else in more places 2022-03-04 10:33:29 +01:00
mod.rs Generate a <div> instead of a <span> for item-info elements 2022-04-05 18:11:27 +02:00
print_item.rs Mark scalar layout unions so that backends that do not support partially initialized scalars can special case them. 2022-04-05 13:18:21 +00:00
search_index.rs rustdoc: clippy::complexity fixes 2022-02-03 23:17:13 +01:00
span_map.rs Remove DiagnosticBuilder.quiet 2022-01-23 00:11:13 -06:00
tests.rs Corrected imports for render tests and mod files 2021-03-04 10:25:00 -08:00
write_shared.rs Auto merge of #91948 - nnethercote:rustdoc-more-Symbols, r=GuillaumeGomez 2022-01-14 20:34:18 +00:00