File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 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(
569569 message. push_str ( & format ! ( ": {}" , html. into_string( ) ) ) ;
570570 }
571571 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>",
573576 message,
574577 ) ) ;
575578 }
@@ -582,8 +585,9 @@ fn short_item_info(
582585 . filter ( |stab| stab. feature != sym:: rustc_private)
583586 . map ( |stab| ( stab. level , stab. feature ) )
584587 {
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 ( ) ;
587591
588592 let mut feature = format ! ( "<code>{}</code>" , Escape ( feature. as_str( ) ) ) ;
589593 if let ( Some ( url) , Some ( issue) ) = ( & cx. shared . issue_tracker_base_url , issue) {
@@ -594,7 +598,7 @@ fn short_item_info(
594598 ) ) ;
595599 }
596600
597- message. push_str ( & format ! ( " ({})" , feature) ) ;
601+ message. push_str ( & format ! ( " ({})</span> " , feature) ) ;
598602
599603 extra_info. push ( format ! ( "<div class=\" stab unstable\" >{}</div>" , message) ) ;
600604 }
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 */
11721172
11731173.stab .emoji {
11741174 font-size : 1.25rem ;
1175+ margin-right : 0.3rem ;
11751176}
11761177
11771178/* Black one-pixel outline around emoji shapes */
You can’t perform that action at this time.
0 commit comments