mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01: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.childElementCount === 1) {
|
||||||
if (sourceElement.parentElement.previousElementSibling) {
|
if (sourceElement.parentElement.previousElementSibling) {
|
||||||
sourceElement.parentElement.previousElementSibling.querySelector(".b3-list-item__toggle").classList.add("fn__hidden");
|
const parentLiElement = sourceElement.parentElement.previousElementSibling;
|
||||||
sourceElement.parentElement.previousElementSibling.querySelector(".b3-list-item__arrow").classList.remove("b3-list-item__arrow--open");
|
if (parentLiElement.getAttribute("data-type") !== "navigation-root") {
|
||||||
const emojiElement = sourceElement.parentElement.previousElementSibling.querySelector(".b3-list-item__icon");
|
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)) {
|
if (emojiElement.innerHTML === unicode2Emoji(window.siyuan.storage[Constants.LOCAL_IMAGES].folder)) {
|
||||||
emojiElement.innerHTML = unicode2Emoji(window.siyuan.storage[Constants.LOCAL_IMAGES].file);
|
emojiElement.innerHTML = unicode2Emoji(window.siyuan.storage[Constants.LOCAL_IMAGES].file);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue