bold open file

This commit is contained in:
Mylloon 2024-11-27 18:27:54 +01:00
parent 8750d52a4d
commit 4b025475db
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -102,6 +102,14 @@ window.addEventListener("load", () => {
fileTreeElement.querySelector("ul").childNodes fileTreeElement.querySelector("ul").childNodes
); );
// Bold opened file
const opened_file = fullpath.split("/").at(-1);
last_openeded.querySelector("ul").childNodes.forEach((el) => {
if (el.innerText === opened_file) {
el.style.fontWeight = "bold";
}
});
uncollapse(last_openeded); uncollapse(last_openeded);
} }
}); });