Folder icon fix

This commit is contained in:
Kenneth Jao 2024-11-09 20:33:35 +08:00
parent 47604a2d00
commit e110fe364f
2 changed files with 4 additions and 9 deletions

View File

@ -474,7 +474,7 @@ footer#section-footer .row {
padding-left: 2.2rem;
}
tbody a[href*="."]:before {
tbody a:before {
background: url('../icons/file-blank.svg') left center/1.1rem no-repeat;
content: "";
width: 1.5rem;
@ -515,7 +515,7 @@ footer#section-footer .row {
padding-left: 3rem;
}
tbody a[href*="."]:before {
tbody a:before {
background: url('../icons/file-blank.svg') left center/1.1rem no-repeat;
content: "";
width: 1.5rem;
@ -539,12 +539,7 @@ tbody a[href$="../"] {
/* -- ICONS -- */
/* ----------- */
tbody a[href*="/"]:after {
background: url('../icons/folder.svg') left center/1.1rem no-repeat;
content: "";
}
tbody a[href$="/"]:before {
tbody a[href$="/"]:before, tbody a[href*="/?"]:before {
background: url('../icons/folder.svg') left center/1.1rem no-repeat;
}

View File

@ -133,7 +133,7 @@ var TITLEIZE = false;
function editText() {
let dom = document.querySelector("#section-content .row");
dom.innerHTML = dom.innerHTML.substring(dom.innerText.substring(1).search("\n")+3);
dom = document.querySelector("tbody a[href$='../']").innerText = "Parent Directory"
dom = document.querySelector("tbody a[href*='../']").innerText = "Parent Directory"
}
/**