Skip to content

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

:bug: Avoid extra mobile editor bottom spacing https://github.com/siyuan-note/siyuan/issues/18912

Daniel5c8065383441
diff --git a/app/src/assets/scss/main/_mobile.scss b/app/src/assets/scss/main/_mobile.scss
index fd78e6c26e..b2100f1459 100644
--- a/app/src/assets/scss/main/_mobile.scss
+++ b/app/src/assets/scss/main/_mobile.scss
@@ -6,7 +6,6 @@ body {
--mobile-bottom-bar-height: 56px;
--mobile-bottom-bar-safe-area: max(8px, env(safe-area-inset-bottom));
--mobile-bottom-bar-offset: calc(var(--mobile-bottom-bar-height) + var(--mobile-bottom-bar-safe-area));
- --mobile-editor-bottom-offset: calc(var(--mobile-bottom-bar-height) + var(--mobile-bottom-bar-safe-area));
}
body.mobile-chrome--hidden {
@@ -15,7 +14,6 @@ body.mobile-chrome--hidden {
body.mobile-keyboard--open {
--mobile-bottom-bar-offset: 0px;
- --mobile-editor-bottom-offset: 0px;
}
.block__popover {
@@ -415,7 +413,7 @@ body.mobile-keyboard--open {
#editor {
box-sizing: border-box;
- padding-bottom: var(--mobile-editor-bottom-offset);
+ padding-bottom: var(--mobile-bottom-bar-offset);
}
@media (prefers-reduced-motion: reduce) {