mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
41f72e65d3
commit
a99a55b512
1 changed files with 6 additions and 3 deletions
|
@ -987,9 +987,12 @@ data-type="navigation-root" data-path="/">
|
|||
}
|
||||
if (sourceElement.parentElement.childElementCount === 1) {
|
||||
if (sourceElement.parentElement.previousElementSibling) {
|
||||
sourceElement.parentElement.previousElementSibling.querySelector(".b3-list-item__toggle").classList.add("fn__hidden");
|
||||
sourceElement.parentElement.previousElementSibling.querySelector(".b3-list-item__arrow").classList.remove("b3-list-item__arrow--open");
|
||||
const emojiElement = sourceElement.parentElement.previousElementSibling.querySelector(".b3-list-item__icon");
|
||||
const parentLiElement = sourceElement.parentElement.previousElementSibling;
|
||||
if (parentLiElement.getAttribute("data-type") !== "navigation-root") {
|
||||
parentLiElement.querySelector(".b3-list-item__toggle").classList.add("fn__hidden");
|
||||
}
|
||||
parentLiElement.querySelector(".b3-list-item__arrow").classList.remove("b3-list-item__arrow--open");
|
||||
const emojiElement = parentLiElement.querySelector(".b3-list-item__icon");
|
||||
if (emojiElement.innerHTML === unicode2Emoji(window.siyuan.storage[Constants.LOCAL_IMAGES].folder)) {
|
||||
emojiElement.innerHTML = unicode2Emoji(window.siyuan.storage[Constants.LOCAL_IMAGES].file);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue