This commit is contained in:
parent
3eff91d30e
commit
de0b3b8415
2 changed files with 16 additions and 10 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue