Skip to content

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

:bug: Open mobile database field menus from the bottom https://github.com/siyuan-note/siyuan/issues/19207

Daniel3ba3509391d0
diff --git a/app/src/protyle/render/av/col.ts b/app/src/protyle/render/av/col.ts
index 149e47d74c..529d76c182 100644
--- a/app/src/protyle/render/av/col.ts
+++ b/app/src/protyle/render/av/col.ts
@@ -1474,12 +1474,16 @@ export const showColMenu = (protyle: IProtyle, blockElement: Element, cellElemen
}
});
}
- const cellRect = cellElement.getBoundingClientRect();
- menu.open({
- x: cellRect.left,
- y: cellRect.bottom,
- h: cellRect.height
- });
+ if (isMobile()) {
+ menu.fullscreen("bottom");
+ } else {
+ const cellRect = cellElement.getBoundingClientRect();
+ menu.open({
+ x: cellRect.left,
+ y: cellRect.bottom,
+ h: cellRect.height
+ });
+ }
/// #if !MOBILE
const inputElement = window.siyuan.menus.menu.element.querySelector(".b3-text-field") as HTMLInputElement;
if (inputElement) {