mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 17:30:52 +08:00
This commit is contained in:
parent
35ccbaa0f0
commit
f67bd1ad7f
@ -780,7 +780,12 @@ export class Files extends Model {
|
|||||||
currentPath = dirname + ".sy";
|
currentPath = dirname + ".sy";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
liElement.querySelector(".fn__hidden")?.classList.remove("fn__hidden");
|
const hiddenElement = liElement.querySelector(".fn__hidden")
|
||||||
|
if (hiddenElement) {
|
||||||
|
hiddenElement.classList.remove("fn__hidden");
|
||||||
|
} else {
|
||||||
|
this.getLeaf(liElement, notebookId, true);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -293,7 +293,12 @@ export class MobileFiles extends Model {
|
|||||||
currentPath = dirname + ".sy";
|
currentPath = dirname + ".sy";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
liElement.querySelector(".fn__hidden")?.classList.remove("fn__hidden");
|
const hiddenElement = liElement.querySelector(".fn__hidden")
|
||||||
|
if (hiddenElement) {
|
||||||
|
hiddenElement.classList.remove("fn__hidden");
|
||||||
|
} else {
|
||||||
|
this.getLeaf(liElement, notebookId, true);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -229,7 +229,7 @@ export class Toolbar {
|
|||||||
|
|
||||||
public setInlineMark(protyle: IProtyle, type: string, action: "range" | "toolbar", textObj?: ITextOption) {
|
public setInlineMark(protyle: IProtyle, type: string, action: "range" | "toolbar", textObj?: ITextOption) {
|
||||||
const nodeElement = hasClosestBlock(this.range.startContainer);
|
const nodeElement = hasClosestBlock(this.range.startContainer);
|
||||||
if (!nodeElement) {
|
if (!nodeElement || nodeElement.getAttribute("data-type") === "NodeCodeBlock") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const endElement = hasClosestBlock(this.range.endContainer);
|
const endElement = hasClosestBlock(this.range.endContainer);
|
||||||
|
Loading…
Reference in New Issue
Block a user