Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:iphone: 输入框判断改进

Vanessaaeb60ce80ab8
diff --git a/app/src/mobile/index.ts b/app/src/mobile/index.ts
index aaac0fe46b..b00fb72c6c 100644
--- a/app/src/mobile/index.ts
+++ b/app/src/mobile/index.ts
@@ -96,7 +96,9 @@ class App {
}
if (["INPUT", "TEXTAREA"].includes(event.target.tagName)) {
setTimeout(() => {
- event.target.scrollIntoView();
+ event.target.scrollIntoView({
+ block: "center",
+ });
}, Constants.TIMEOUT_TRANSITION);
}
if (isInIOS()) {