Vanessa 2024-11-01 08:54:58 +08:00
parent 3eff91d30e
commit de0b3b8415
2 changed files with 16 additions and 10 deletions

View file

@ -770,12 +770,15 @@ export class Files extends Model {
if (!init) {
return;
}
if (html === "") {
this.closeElement.lastElementChild.classList.remove("fn__none");
this.closeElement.classList.add("fn__flex-1");
} else {
const svgElement = this.closeElement.querySelector("svg")
if (html !== "") {
this.closeElement.style.height = "30px";
svgElement.classList.remove("b3-list-item__arrow--open");
this.closeElement.lastElementChild.classList.add("fn__none");
this.closeElement.classList.remove("fn__flex-1");
} else {
this.closeElement.style.height = "40%";
svgElement.classList.add("b3-list-item__arrow--open");
this.closeElement.lastElementChild.classList.remove("fn__none");
}
}

View file

@ -322,12 +322,15 @@ export class MobileFiles extends Model {
if (!init) {
return;
}
if (html === "") {
this.closeElement.lastElementChild.classList.remove("fn__none");
this.closeElement.classList.add("fn__flex-1");
} else {
const svgElement = this.closeElement.querySelector("svg")
if (html !== "") {
this.closeElement.style.height = "30px";
svgElement.classList.remove("b3-list-item__arrow--open");
this.closeElement.lastElementChild.classList.add("fn__none");
this.closeElement.classList.remove("fn__flex-1");
} else {
this.closeElement.style.height = "40%";
svgElement.classList.add("b3-list-item__arrow--open");
this.closeElement.lastElementChild.classList.remove("fn__none");
}
}