An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/pull/11214
Vanessa71d00fc8f8bd
diff --git a/app/src/plugin/Setting.ts b/app/src/plugin/Setting.tsindex c90d2f997c..8d3bef79e2 100644--- a/app/src/plugin/Setting.ts+++ b/app/src/plugin/Setting.ts@@ -48,9 +48,9 @@ export class Setting {if (!item.actionElement && item.createActionElement) {actionElement = item.createActionElement();}- const tagName = actionElement?.classList.contains("b3-switch")?"label":"div";- if (item.direction === undefined) {- item.direction = ["TEXTAREA"].includes(actionElement.tagName) ? 'row' : 'column';+ const tagName = actionElement?.classList.contains("b3-switch") ? "label" : "div";+ if (typeof item.direction === "undefined") {+ item.direction = "TEXTAREA" === actionElement.tagName ? "row" : "column";}if (item.direction === "row") {html = `<${tagName} class="b3-label">