Rollup merge of #86370 - matteo-briani:fix-rustdoc-stabilized-versions-layout, r=GuillaumeGomez

Fix rustdoc stabilized versions layout

Fixes #86342
r? `@GuillaumeGomez`
This commit is contained in:
Yuki Okushi 2021-06-19 10:14:09 +09:00 committed by GitHub
commit 41bf471950
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -981,7 +981,9 @@ fn item_enum(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, e: &clean::Enum
}
w.write_str(")");
}
w.write_str("</code></div>");
w.write_str("</code>");
render_stability_since(w, variant, it, cx.tcx());
w.write_str("</div>");
document(w, cx, variant, Some(it));
document_non_exhaustive(w, variant);
@ -1023,7 +1025,6 @@ fn item_enum(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, e: &clean::Enum
w.write_str("</div></div>");
toggle_close(w);
}
render_stability_since(w, variant, it, cx.tcx());
}
}
let def_id = it.def_id.expect_real();

View File

@ -653,6 +653,12 @@ a {
background: transparent;
}
.small-section-header {
display: flex;
justify-content: space-between;
position: relative;
}
.small-section-header:hover > .anchor {
display: initial;
}