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: Keep mobile table cell formula editor above navigation bars
Danielce50eb4a2f39
diff --git a/app/src/protyle/render/tableCellRichEditor.ts b/app/src/protyle/render/tableCellRichEditor.tsindex 4c54af2fc7..7f8eb5334b 100644--- a/app/src/protyle/render/tableCellRichEditor.ts+++ b/app/src/protyle/render/tableCellRichEditor.ts@@ -219,6 +219,11 @@ export const openTableCellRichEditor = async (owner: IProtyle, cell: HTMLTableCe}},});+ const mobileRenderOverlay = isMobile() ? fragment.protyle.toolbar.subElement : undefined;+ if (mobileRenderOverlay) {+ // 移动端正文有独立层叠上下文,源码编辑框需要挂在页面层以覆盖顶栏。+ document.body.appendChild(mobileRenderOverlay);+ }fragment.protyle.block.rootID = owner.block.rootID;fragment.protyle.block.parentID = table.dataset.nodeId;fragment.protyle.path = owner.path;@@ -275,6 +280,7 @@ export const openTableCellRichEditor = async (owner: IProtyle, cell: HTMLTableCecontroller.abort();observer.disconnect();fragment.destroy();+ mobileRenderOverlay?.remove();if (cell.isConnected && host.isConnected) {renderTableCellRich(cell);if (cell.hasAttribute(TABLE_CELL_RICH_ATTRIBUTE)) {