Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/12267

Vanessa390c0271887f
diff --git a/app/src/protyle/wysiwyg/list.ts b/app/src/protyle/wysiwyg/list.ts
index b9215c4ece..b7c24237be 100644
--- a/app/src/protyle/wysiwyg/list.ts
+++ b/app/src/protyle/wysiwyg/list.ts
@@ -117,7 +117,7 @@ export const listIndent = (protyle: IProtyle, liItemElements: Element[], range:
previousElement.lastElementChild.previousElementSibling.lastElementChild.before(item);
} else if (subtype === "t") {
item.setAttribute("data-marker", "*");
- actionElement.innerHTML = '<svg><use xlink:href="#iconUncheck"></use></svg>';
+ actionElement.innerHTML = `<svg><use xlink:href="#icon${item.classList.contains("protyle-task--done") ? "Check" : "Uncheck"}"></use></svg>`;
actionElement.classList.remove("protyle-action--order");
actionElement.classList.add("protyle-action--task");
previousElement.lastElementChild.previousElementSibling.lastElementChild.before(item);