mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
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:
commit
41bf471950
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user