We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdc6c49 commit 32b9253Copy full SHA for 32b9253
src/librustdoc/html/static/js/main.js
@@ -1248,9 +1248,13 @@ href="https://doc.rust-lang.org/${channel}/rustdoc/how-to-read-rustdoc.html\
1248
const hideSidebar = () => {
1249
if (isSrcPage) {
1250
window.rustdocCloseSourceSidebar();
1251
+ updateLocalStorage("src-sidebar-width", null);
1252
+ document.documentElement.style.removeProperty("--src-sidebar-width");
1253
} else {
1254
addClass(document.documentElement, "hide-sidebar");
1255
updateLocalStorage("hide-sidebar", "true");
1256
+ updateLocalStorage("desktop-sidebar-width", null);
1257
+ document.documentElement.style.removeProperty("--desktop-sidebar-width");
1258
}
1259
};
1260
const showSidebar = () => {
0 commit comments