Skip to content

rustdoc: add method spacing to trait methods#102447

Merged
bors merged 1 commit intorust-lang:masterfrom
notriddle:notriddle/method-toggle
Sep 29, 2022
Merged

rustdoc: add method spacing to trait methods#102447
bors merged 1 commit intorust-lang:masterfrom
notriddle:notriddle/method-toggle

Conversation

@notriddle
Copy link
Copy Markdown
Contributor

More cleanup for 8846c08, this time in trait layouts when things are collapsed.

This PR makes two changes to the appearance of trait pages:

  • It adds the method-toggle class to method toggles on traits, making the DOM more consistent with type pages (which already have this class).

    Before

    image

    After

    image

  • It adds a bottom margin to docblocks nested directly in the implementors list, giving it a similar appearance to if it was nested within a toggle.

    Before

    image

    After

    image

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants