Skip to content

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

:bug: Prevent mobile editor jumping at the document bottom https://github.com/siyuan-note/siyuan/issues/19255

Daniel0fe1b24f931a
diff --git a/app/src/assets/scss/main/_mobile.scss b/app/src/assets/scss/main/_mobile.scss
index 55814b7aed..e3dbd1ce08 100644
--- a/app/src/assets/scss/main/_mobile.scss
+++ b/app/src/assets/scss/main/_mobile.scss
@@ -633,7 +633,8 @@ body.mobile-topbar--merged {
// 滚动视口延伸到屏幕底边,仅在文档末尾留出空间,确保末行可滚到导航栏上方。
> .protyle-content::after {
display: block;
- height: var(--mobile-bottom-bar-offset);
+ // 键盘切换时保留末尾占位,避免滚动到底部后因内容高度缩减而回弹。
+ height: calc(var(--mobile-bottom-bar-height) + var(--mobile-bottom-bar-bottom));
content: "";
}