Skip to content

Commit 0c932b7

Browse files
authored
Rearrange sidebar modnav builder to more logical order
1 parent 2e1e627 commit 0c932b7

File tree

1 file changed

+2
-2
lines changed
  • src/librustdoc/html/static/js

1 file changed

+2
-2
lines changed

src/librustdoc/html/static/js/main.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -531,13 +531,13 @@ function preLoadCss(cssUrl) {
531531
link.href = path;
532532
link.textContent = name;
533533
const li = document.createElement("li");
534-
li.appendChild(link);
535-
ul.appendChild(li);
536534
// Don't "optimize" this to just use `path`.
537535
// We want the browser to normalize this into an absolute URL.
538536
if (link.href === current_page) {
539537
li.classList.add("current");
540538
}
539+
li.appendChild(link);
540+
ul.appendChild(li);
541541
}
542542
sidebar.appendChild(h3);
543543
sidebar.appendChild(ul);

0 commit comments

Comments
 (0)