Skip to content

Commit a48d9d1

Browse files
committed
Move stab_tags to symbol in tables
1 parent 17ea490 commit a48d9d1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/librustdoc/html/render/print_item.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -363,10 +363,11 @@ fn item_module(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item, items: &[cl
363363
write!(
364364
w,
365365
"<div class=\"item-left {stab}{add}module-item\">\
366-
<a class=\"{class}\" href=\"{href}\" \
367-
title=\"{title}\">{name}</a>{unsafety_flag}\
366+
<a class=\"{class}\" href=\"{href}\" title=\"{title}\">{name}</a>\
367+
{unsafety_flag}\
368+
{stab_tags}\
368369
</div>\
369-
<div class=\"item-right docblock-short\">{stab_tags}{docs}</div>",
370+
<div class=\"item-right docblock-short\">{docs}</div>",
370371
name = *myitem.name.as_ref().unwrap(),
371372
stab_tags = extra_info_tags(myitem, item, cx.tcx()),
372373
docs = MarkdownSummaryLine(&doc_value, &myitem.links(cx)).into_string(),

src/librustdoc/html/static/rustdoc.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ body.blur > :not(#help) {
923923
font-size: 80%;
924924
line-height: 1.2;
925925
margin-bottom: 0;
926-
margin-right: .3em;
926+
margin-left: .3em;
927927
padding: 2px;
928928
vertical-align: text-bottom;
929929
}

0 commit comments

Comments
 (0)