An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Avoid duplicate Android mobile top safe area https://github.com/siyuan-note/siyuan/issues/14542
Daniel9d47103ec89b
diff --git a/app/src/assets/scss/main/_mobile.scss b/app/src/assets/scss/main/_mobile.scssindex f424f6ec4e..b6f88a67ad 100644--- a/app/src/assets/scss/main/_mobile.scss+++ b/app/src/assets/scss/main/_mobile.scss@@ -3,6 +3,7 @@@use "../component/svg";body {+ --mobile-top-safe-area: env(safe-area-inset-top);--mobile-topbar-height: 48px;--mobile-breadcrumb-height: 42px;--mobile-bottom-bar-height: 48px;@@ -13,6 +14,10 @@ body {--mobile-bottom-bar-offset: calc(var(--mobile-bottom-bar-height) + var(--mobile-bottom-bar-bottom));}+body.body--android {+ --mobile-top-safe-area: 0px;+}+body.mobile-keyboard--open {--mobile-bottom-bar-offset: 0px;}@@ -287,14 +292,14 @@ body.mobile-keyboard--open {.mobile-safe-area {position: relative;z-index: 4;- height: env(safe-area-inset-top);+ height: var(--mobile-top-safe-area);flex-shrink: 0;background-color: var(--b3-theme-background);}.mobile-topbar {position: absolute;- top: env(safe-area-inset-top);+ top: var(--mobile-top-safe-area);right: 0;left: 0;z-index: 3;diff --git a/app/src/mobile/index.ts b/app/src/mobile/index.tsindex 179a616429..5dda97a017 100644--- a/app/src/mobile/index.ts+++ b/app/src/mobile/index.ts@@ -31,6 +31,7 @@ import {getLocalStorage,initWindowOpenOverride,isChromeBrowser,+ isInAndroid,isInIOS,isInMobileApp,writeText@@ -177,6 +178,7 @@ class App {addScript(`${Constants.PROTYLE_CDN}/js/protyle-html.js?v=${Constants.SIYUAN_VERSION}`, "protyleWcHtmlScript");window.siyuan.config = confResponse.data.conf;window.siyuan.isPublish = confResponse.data.isPublish;+ document.body.classList.toggle("body--android", Boolean(isInAndroid()));correctHotkey(siyuanApp);await loadPlugins(this);getLocalStorage(() => {