Skip to content

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

:bug: Restore mobile editor bars on scroll https://github.com/siyuan-note/siyuan/issues/14542

Daniela7ee0f04f3c5
diff --git a/app/src/assets/scss/main/_mobile.scss b/app/src/assets/scss/main/_mobile.scss
index 9887e89d7f..e3d6276c35 100644
--- a/app/src/assets/scss/main/_mobile.scss
+++ b/app/src/assets/scss/main/_mobile.scss
@@ -587,6 +587,7 @@ body.mobile-topbar--merged {
left: 0;
z-index: 3;
height: var(--mobile-breadcrumb-height);
+ border-radius: 0;
transform: translate3d(0, var(--mobile-bar-translate-y, 0), 0);
will-change: transform;
}
diff --git a/app/src/mobile/util/mobileBars.ts b/app/src/mobile/util/mobileBars.ts
index 1935420356..cef33245a1 100644
--- a/app/src/mobile/util/mobileBars.ts
+++ b/app/src/mobile/util/mobileBars.ts
@@ -31,13 +31,7 @@ export const isMobileBlockSelecting = () => {
return Boolean(multiSelectElement && !multiSelectElement.closest(".fn__none"));
};
-const isPanelOpen = () => PANEL_IDS.some((id) => {
- const element = document.getElementById(id);
- if (id === "menu") {
- return Boolean(element && !element.classList.contains("fn__none"));
- }
- return Boolean(element?.style.transform);
-});
+const isPanelOpen = () => PANEL_IDS.some((id) => Boolean(document.getElementById(id)?.style.transform));
const renderMobileBars = () => {
const visibility = getMobileBarsVisibility(barsState);