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: fix https://github.com/siyuan-note/siyuan/issues/8297
Vanessacae4ab17d24f
diff --git a/app/src/config/editor.ts b/app/src/config/editor.tsindex 5d8f8a0b54..b39426a6c6 100644--- a/app/src/config/editor.ts+++ b/app/src/config/editor.ts@@ -220,6 +220,14 @@ export const editor = {<span class="fn__space"></span>${fontFamilyHTML}</label>+<label class="fn__flex b3-label">+ <div class="fn__flex-1">+ ${window.siyuan.languages.fontSizeScrollZoom}+ <div class="b3-label__text">${window.siyuan.languages.fontSizeScrollZoomTip.replace("Ctrl", updateHotkeyTip("⌘"))}</div>+ </div>+ <span class="fn__space"></span>+ <input class="b3-switch fn__flex-center" id="fontSizeScrollZoom" type="checkbox"${window.siyuan.config.editor.fontSizeScrollZoom ? " checked" : ""}/>+</label><label class="fn__flex b3-label config__item"><div class="fn__flex-1">${window.siyuan.languages.fontSize}@@ -303,6 +311,7 @@ export const editor = {codeLigatures: (editor.element.querySelector("#codeLigatures") as HTMLInputElement).checked,codeTabSpaces: parseInt((editor.element.querySelector("#codeTabSpaces") as HTMLInputElement).value),fontSize: parseInt((editor.element.querySelector("#fontSize") as HTMLInputElement).value),+ fontSizeScrollZoom: (editor.element.querySelector("#fontSizeScrollZoom") as HTMLInputElement).checked,generateHistoryInterval: parseInt((editor.element.querySelector("#generateHistoryInterval") as HTMLInputElement).value),historyRetentionDays: parseInt((editor.element.querySelector("#historyRetentionDays") as HTMLInputElement).value),fontFamily: fontFamilyElement.value,diff --git a/app/src/config/search.ts b/app/src/config/search.tsindex 5864b666d1..36dcc90711 100644--- a/app/src/config/search.ts+++ b/app/src/config/search.ts@@ -20,7 +20,8 @@ export const initConfigSearch = (element: HTMLElement, app: App) => {"historyRetentionDays", "historyRetentionDaysTip", "clearHistory", "katexMacros", "katexMacrosTip","editReadonly", "editReadonlyTip", "embedBlockBreadcrumb", "embedBlockBreadcrumbTip", "outlineOutdentTip","outdent", "floatWindowMode", "floatWindowModeTip", "justify", "justifyTip", "rtl", "rtlTip", "spellcheck",- "spellcheckTip", "backlinkExpand", "backlinkExpandTip", "onlySearchForDocTip", "dynamicLoadBlocks", "dynamicLoadBlocksTip",+ "spellcheckTip", "backlinkExpand", "backlinkExpandTip", "onlySearchForDocTip", "dynamicLoadBlocks",+ "dynamicLoadBlocksTip", "fontSizeScrollZoom", "fontSizeScrollZoomTip"]),// 文档树diff --git a/app/src/protyle/ui/initUI.ts b/app/src/protyle/ui/initUI.tsindex 0dacc8804a..9264ab5615 100644--- a/app/src/protyle/ui/initUI.ts+++ b/app/src/protyle/ui/initUI.ts@@ -76,7 +76,7 @@ export const initUI = (protyle: IProtyle) => {let wheelTimeout: number;const isMacOS = isMac();protyle.contentElement.addEventListener("mousewheel", (event: WheelEvent) => {- if ((isMacOS && !event.metaKey) || (!isMacOS && !event.ctrlKey) || event.deltaX !== 0) {+ if (!window.siyuan.config.editor.fontSizeScrollZoom || (isMacOS && !event.metaKey) || (!isMacOS && !event.ctrlKey) || event.deltaX !== 0) {return;}event.preventDefault();diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.tsindex 14a358394b..51c34c2a71 100644--- a/app/src/types/index.d.ts+++ b/app/src/types/index.d.ts@@ -380,6 +380,7 @@ declare interface IExport {declare interface IEditor {justify: boolean;+ fontSizeScrollZoom: boolean;rtl: boolean;readOnly: boolean;listLogicalOutdent: boolean;