File tree 2 files changed +7
-6
lines changed
src/librustdoc/html/static
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -561,6 +561,7 @@ ul.block, .block li {
561
561
display : block;
562
562
padding : 0.25rem ; /* 4px */
563
563
margin-left : -0.25rem ;
564
+ margin-right : 0.25rem ;
564
565
}
565
566
566
567
.sidebar h2 {
Original file line number Diff line number Diff line change @@ -476,11 +476,11 @@ function preLoadCss(cssUrl) {
476
476
const current_page = document . location . href . split ( "/" ) . pop ( ) ;
477
477
const link = document . createElement ( "a" ) ;
478
478
link . href = path ;
479
- if ( path === current_page ) {
480
- link . className = "current" ;
481
- }
482
479
link . textContent = name ;
483
480
const li = document . createElement ( "li" ) ;
481
+ if ( path === current_page ) {
482
+ li . className = "current" ;
483
+ }
484
484
li . appendChild ( link ) ;
485
485
ul . appendChild ( li ) ;
486
486
}
@@ -613,12 +613,12 @@ function preLoadCss(cssUrl) {
613
613
for ( const crate of window . ALL_CRATES ) {
614
614
const link = document . createElement ( "a" ) ;
615
615
link . href = window . rootPath + crate + "/index.html" ;
616
- if ( window . rootPath !== "./" && crate === window . currentCrate ) {
617
- link . className = "current" ;
618
- }
619
616
link . textContent = crate ;
620
617
621
618
const li = document . createElement ( "li" ) ;
619
+ if ( window . rootPath !== "./" && crate === window . currentCrate ) {
620
+ li . className = "current" ;
621
+ }
622
622
li . appendChild ( link ) ;
623
623
ul . appendChild ( li ) ;
624
624
}
You can’t perform that action at this time.
0 commit comments