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/issues/12789
Vanessab983ba7f549a
diff --git a/app/src/mobile/util/keyboardToolbar.ts b/app/src/mobile/util/keyboardToolbar.tsindex 7fcaeda5bc..fdc50e4f6c 100644--- a/app/src/mobile/util/keyboardToolbar.ts+++ b/app/src/mobile/util/keyboardToolbar.ts@@ -288,15 +288,23 @@ export const showKeyboardToolbarUtil = (oldScrollTop: number) => {showUtil = true;const toolbarElement = document.getElementById("keyboardToolbar");- const keyboardHeight = ((window.siyuan.mobile.size.isLandscape ? window.siyuan.mobile.size.landscape.height1 - window.siyuan.mobile.size.landscape.height2 : window.siyuan.mobile.size.portrait.height1 - window.siyuan.mobile.size.portrait.height2) ||- (window.innerHeight / 2 - 42)) + "px";+ let keyboardHeight = window.innerHeight / 2 - 42;+ if (window.siyuan.mobile.size.isLandscape) {+ if (window.siyuan.mobile.size.landscape.height1 !== window.siyuan.mobile.size.landscape.height2) {+ keyboardHeight = window.siyuan.mobile.size.landscape.height1 - window.siyuan.mobile.size.landscape.height2 + 42;+ }+ } else {+ if (window.siyuan.mobile.size.portrait.height1 !== window.siyuan.mobile.size.portrait.height2) {+ keyboardHeight = window.siyuan.mobile.size.portrait.height1 - window.siyuan.mobile.size.portrait.height2 + 42;+ }+ }const editor = getCurrentEditor();if (editor) {- editor.protyle.element.parentElement.style.paddingBottom = keyboardHeight;+ editor.protyle.element.parentElement.style.paddingBottom = keyboardHeight + "px";editor.protyle.contentElement.scrollTop = oldScrollTop;}setTimeout(() => {- toolbarElement.style.height = keyboardHeight;+ toolbarElement.style.height = keyboardHeight + "px";}, Constants.TIMEOUT_TRANSITION); // 防止抖动setTimeout(() => {showUtil = false;