Vanessa 2025-03-27 22:54:33 +08:00
parent 8c0e9369f3
commit 8ed198b0e7

View file

@ -2364,7 +2364,8 @@ data-type="fold" style="cursor:inherit;"><svg style="width: 10px${fold && fold =
if (type === "NodeBlockquote") {
space += 8;
}
if (nodeElement.previousElementSibling && nodeElement.previousElementSibling.getAttribute("data-node-id")) {
if (nodeElement.isSameNode(wysiwyg.firstElementChild) ||
(nodeElement.previousElementSibling && nodeElement.previousElementSibling.getAttribute("data-node-id"))) {
// 前一个块存在时,只显示到当前层级
hideParent = true;
// 由于折叠块的第二个子块在界面上不显示,因此移除块标 https://github.com/siyuan-note/siyuan/issues/14304