File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -569,7 +569,10 @@ fn short_item_info(
569
569
message. push_str ( & format ! ( ": {}" , html. into_string( ) ) ) ;
570
570
}
571
571
extra_info. push ( format ! (
572
- "<div class=\" stab deprecated\" ><span class=\" emoji\" >👎</span> {}</div>" ,
572
+ "<div class=\" stab deprecated\" >\
573
+ <span class=\" emoji\" >👎</span>\
574
+ <span>{}</span>\
575
+ </div>",
573
576
message,
574
577
) ) ;
575
578
}
@@ -582,8 +585,9 @@ fn short_item_info(
582
585
. filter ( |stab| stab. feature != sym:: rustc_private)
583
586
. map ( |stab| ( stab. level , stab. feature ) )
584
587
{
585
- let mut message =
586
- "<span class=\" emoji\" >🔬</span> This is a nightly-only experimental API." . to_owned ( ) ;
588
+ let mut message = "<span class=\" emoji\" >🔬</span>\
589
+ <span>This is a nightly-only experimental API."
590
+ . to_owned ( ) ;
587
591
588
592
let mut feature = format ! ( "<code>{}</code>" , Escape ( feature. as_str( ) ) ) ;
589
593
if let ( Some ( url) , Some ( issue) ) = ( & cx. shared . issue_tracker_base_url , issue) {
@@ -594,7 +598,7 @@ fn short_item_info(
594
598
) ) ;
595
599
}
596
600
597
- message. push_str ( & format ! ( " ({})" , feature) ) ;
601
+ message. push_str ( & format ! ( " ({})</span> " , feature) ) ;
598
602
599
603
extra_info. push ( format ! ( "<div class=\" stab unstable\" >{}</div>" , message) ) ;
600
604
}
Original file line number Diff line number Diff line change @@ -1172,6 +1172,7 @@ so that we can apply CSS-filters to change the arrow color in themes */
1172
1172
1173
1173
.stab .emoji {
1174
1174
font-size : 1.25rem ;
1175
+ margin-right : 0.3rem ;
1175
1176
}
1176
1177
1177
1178
/* Black one-pixel outline around emoji shapes */
You can’t perform that action at this time.
0 commit comments