Move stab_tags to symbol in tables

This commit is contained in:
Stefan Schindler 2021-06-23 20:02:00 +02:00
parent 17ea490310
commit a48d9d1c49
2 changed files with 5 additions and 4 deletions

View File

@ -363,10 +363,11 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
write!(
w,
"<div class=\"item-left {stab}{add}module-item\">\
<a class=\"{class}\" href=\"{href}\" \
title=\"{title}\">{name}</a>{unsafety_flag}\
<a class=\"{class}\" href=\"{href}\" title=\"{title}\">{name}</a>\
{unsafety_flag}\
{stab_tags}\
</div>\
<div class=\"item-right docblock-short\">{stab_tags}{docs}</div>",
<div class=\"item-right docblock-short\">{docs}</div>",
name = *myitem.name.as_ref().unwrap(),
stab_tags = extra_info_tags(myitem, item, cx.tcx()),
docs = MarkdownSummaryLine(&doc_value, &myitem.links(cx)).into_string(),

View File

@ -923,7 +923,7 @@ body.blur > :not(#help) {
font-size: 80%;
line-height: 1.2;
margin-bottom: 0;
margin-right: .3em;
margin-left: .3em;
padding: 2px;
vertical-align: text-bottom;
}