Skip to content

Commit d412bdc

Browse files
committed
rustdoc: add method spacing to trait methods
More cleanup for 8846c08, this time in trait layouts when things are collapsed.
1 parent ce7f0f1 commit d412bdc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/librustdoc/html/render/print_item.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ fn item_trait(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, t: &clean:
716716
document(&mut content, cx, m, Some(t), HeadingOffset::H5);
717717
let toggled = !content.is_empty();
718718
if toggled {
719-
write!(w, "<details class=\"rustdoc-toggle\" open><summary>");
719+
write!(w, "<details class=\"rustdoc-toggle method-toggle\" open><summary>");
720720
}
721721
write!(w, "<div id=\"{}\" class=\"method has-srclink\">", id);
722722
render_rightside(w, cx, m, t, RenderMode::Normal);

src/librustdoc/html/static/css/rustdoc.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -2011,7 +2011,8 @@ in storage.js plus the media query with (min-width: 701px)
20112011

20122012
.method-toggle summary,
20132013
.implementors-toggle summary,
2014-
.impl {
2014+
.impl,
2015+
#implementors-list > .docblock {
20152016
margin-bottom: 0.75em;
20162017
}
20172018

0 commit comments

Comments
 (0)