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: Add editor font size scroll zoom switch https://github.com/siyuan-note/siyuan/issues/8297
Daniel337120511a7a
diff --git a/kernel/conf/editor.go b/kernel/conf/editor.goindex 32bba1df2f..6b2819aba8 100644--- a/kernel/conf/editor.go+++ b/kernel/conf/editor.go@@ -18,6 +18,7 @@ package conftype Editor struct {FontSize int `json:"fontSize"` // 字体大小+ FontSizeScrollZoom bool `json:"fontSizeScrollZoom"` // 字体大小是否支持滚轮缩放FontFamily string `json:"fontFamily"` // 字体CodeSyntaxHighlightLineNum bool `json:"codeSyntaxHighlightLineNum"` // 代码块是否显示行号CodeTabSpaces int `json:"codeTabSpaces"` // 代码块中 Tab 转换空格数,配置为 0 则表示不转换@@ -51,6 +52,7 @@ type Editor struct {func NewEditor() *Editor {return &Editor{FontSize: 16,+ FontSizeScrollZoom: false,CodeSyntaxHighlightLineNum: true,CodeTabSpaces: 0,CodeLineWrap: false,