mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
💄
This commit is contained in:
parent
f6f04fd4c6
commit
1c08b5a7b8
1 changed files with 1 additions and 1 deletions
|
|
@ -872,7 +872,7 @@ export class Files extends Model {
|
||||||
liElement.insertAdjacentHTML("afterend", `<ul class="file-tree__sliderDown">${fileHTML}</ul>`);
|
liElement.insertAdjacentHTML("afterend", `<ul class="file-tree__sliderDown">${fileHTML}</ul>`);
|
||||||
nextElement = liElement.nextElementSibling;
|
nextElement = liElement.nextElementSibling;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
nextElement.setAttribute("style", `height:${nextElement.childElementCount * liElement.clientHeight}px;`);
|
nextElement.setAttribute("style", `top: -1px;position: relative;height:${nextElement.childElementCount * (liElement.clientHeight + 1) - 1}px;`);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.element.querySelectorAll(".file-tree__sliderDown").forEach(item => {
|
this.element.querySelectorAll(".file-tree__sliderDown").forEach(item => {
|
||||||
item.classList.remove("file-tree__sliderDown");
|
item.classList.remove("file-tree__sliderDown");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue