Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:lipstick: fix https://github.com/siyuan-note/siyuan/issues/6254

Vanessa5e0e054db8c7
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index 8d66f38018..50a91926e8 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -1695,6 +1695,10 @@ export class Gutter {
}
const topElement = getTopAloneElement(nodeElement);
listItem = topElement.querySelector(".li") || topElement.querySelector(".list");
+ // 嵌入块中有列表时块标显示位置错误 https://github.com/siyuan-note/siyuan/issues/6254
+ if (hasClosestByAttribute(listItem, "data-type", "NodeBlockQueryEmbed")) {
+ listItem = undefined;
+ }
// 标题必须显示
if (!topElement.isSameNode(nodeElement) && type !== "NodeHeading") {
nodeElement = topElement;