Skip to content

Rustdoc: struct fields are spaced too closely #128260

Closed
@tgross35

Description

@tgross35

Sample at https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.Body.html:

image

Headings seem too close to the paragraphs around them, enough so that paragraph breaks stand out more than field breaks.

Testing with .structfield { padding-top: 0.8rem; padding-bottom: 0.2rem; }, I think this makes sections stand out better:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-uiArea: Rustdoc UI (generated HTML)E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions