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: Re-position the layout menu after switching layout type so the bottom items stay visible (e.g. Table→Kanban)
Daniel92f0e99d3c5e
diff --git a/app/src/protyle/render/av/layout.ts b/app/src/protyle/render/av/layout.tsindex d403789889..914c9caa99 100644--- a/app/src/protyle/render/av/layout.ts+++ b/app/src/protyle/render/av/layout.ts@@ -1,6 +1,7 @@import {transaction} from "../../wysiwyg/transaction";import {Constants} from "../../../constants";import {fetchSyncPost} from "../../../util/fetch";+import {setPosition} from "../../../util/setPosition";import {getCardAspectRatio} from "./gallery/util";import {getFieldsByData} from "./view";@@ -256,6 +257,9 @@ export const updateLayout = async (options: {});const menuElement = document.querySelector(".av__panel").lastElementChild as HTMLElement;menuElement.innerHTML = getLayoutHTML(response.data);+ // 切换布局类型后菜单高度变化(如表格→看板),需重新定位避免底部溢出视窗+ const tabRect = options.nodeElement.querySelector(".av__views").getBoundingClientRect();+ setPosition(menuElement, tabRect.right - menuElement.clientWidth, tabRect.bottom, tabRect.height, 0, true);bindLayoutEvent({protyle: options.protyle,data: response.data,