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(")");
|
||||||
}
|
}
|
||||||
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(w, cx, variant, Some(it));
|
||||||
document_non_exhaustive(w, variant);
|
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>");
|
w.write_str("</div></div>");
|
||||||
toggle_close(w);
|
toggle_close(w);
|
||||||
}
|
}
|
||||||
render_stability_since(w, variant, it, cx.tcx());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let def_id = it.def_id.expect_real();
|
let def_id = it.def_id.expect_real();
|
||||||
|
@ -653,6 +653,12 @@ a {
|
|||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.small-section-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
.small-section-header:hover > .anchor {
|
.small-section-header:hover > .anchor {
|
||||||
display: initial;
|
display: initial;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user