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
Vanessa52369911b18c
diff --git a/app/src/boot/onGetConfig.ts b/app/src/boot/onGetConfig.tsindex abe91ac08f..b0c846ccda 100644--- a/app/src/boot/onGetConfig.ts+++ b/app/src/boot/onGetConfig.ts@@ -79,23 +79,6 @@ export const onGetConfig = (isStart: boolean, app: App) => {let resizeTimeout = 0;let firstResize = true;window.addEventListener("resize", () => {- /// #if MOBILE- // 获取键盘高度- window.siyuan.mobile.size.isLandscape = window.matchMedia && window.matchMedia("(orientation: landscape)").matches;- if (window.siyuan.mobile.size.isLandscape) {- if (window.innerHeight < window.siyuan.mobile.size.landscape.height1) {- window.siyuan.mobile.size.landscape.height2 = window.innerHeight;- } else {- window.siyuan.mobile.size.landscape.height1 = window.innerHeight;- }- } else {- if (window.innerHeight < window.siyuan.mobile.size.portrait.height1) {- window.siyuan.mobile.size.portrait.height2 = window.innerHeight;- } else {- window.siyuan.mobile.size.portrait.height1 = window.innerHeight;- }- }- /// #endifif (firstResize) {recordBeforeResizeTop();firstResize = false;diff --git a/app/src/mobile/index.ts b/app/src/mobile/index.tsindex 9ea1914420..42471460ee 100644--- a/app/src/mobile/index.ts+++ b/app/src/mobile/index.ts@@ -195,3 +195,20 @@ window.openFileByURL = (openURL) => {}return false;};+window.addEventListener("resize", () => {+ // 获取键盘高度+ window.siyuan.mobile.size.isLandscape = window.matchMedia && window.matchMedia("(orientation: landscape)").matches;+ if (window.siyuan.mobile.size.isLandscape) {+ if (window.innerHeight < window.siyuan.mobile.size.landscape.height1) {+ window.siyuan.mobile.size.landscape.height2 = window.innerHeight;+ } else {+ window.siyuan.mobile.size.landscape.height1 = window.innerHeight;+ }+ } else {+ if (window.innerHeight < window.siyuan.mobile.size.portrait.height1) {+ window.siyuan.mobile.size.portrait.height2 = window.innerHeight;+ } else {+ window.siyuan.mobile.size.portrait.height1 = window.innerHeight;+ }+ }+});