diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts index cef99bc92..d2913ae29 100644 --- a/app/src/protyle/gutter/index.ts +++ b/app/src/protyle/gutter/index.ts @@ -2545,11 +2545,11 @@ export class Gutter { } listItem = topElement.querySelector(".li") || topElement.querySelector(".list"); // 嵌入块中有列表时块标显示位置错误 https://github.com/siyuan-note/siyuan/issues/6254 - if (isInEmbedBlock(listItem) || isInAVBlock(listItem)) { + if (isInEmbedBlock(listItem) || isInAVBlock(listItem) || hasClosestByClassName(nodeElement, "callout")) { listItem = undefined; } - // 标题必须显示 - if (topElement !== nodeElement && type !== "NodeHeading" && !topElement.classList.contains("callout")) { + // 标题(除列表下的)、提示下的块必须显示 + if (topElement !== nodeElement && type !== "NodeHeading" && !hasClosestByClassName(nodeElement, "callout")) { nodeElement = topElement; parentElement = hasClosestBlock(nodeElement.parentElement); type = nodeElement.getAttribute("data-type"); @@ -2647,9 +2647,7 @@ data-type="fold" style="cursor:inherit;">