Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/9724

Vanessa6cb56b8767d5
diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts
index 9f938290f3..ec14a8670a 100644
--- a/app/src/protyle/render/av/action.ts
+++ b/app/src/protyle/render/av/action.ts
@@ -5,7 +5,7 @@ import {openEditorTab} from "../../../menus/util";
import {copySubMenu} from "../../../menus/commonMenuItem";
import {getTypeByCellElement, popTextCell} from "./cell";
import {getColIconByType, showColMenu} from "./col";
-import {insertAttrViewBlockAnimation, updateHeader} from "./row";
+import {insertAttrViewBlockAnimation, stickyRow, updateHeader} from "./row";
import {emitOpenMenu} from "../../../plugin/EventBus";
import {addCol} from "./col";
import {openMenuPanel} from "./openMenuPanel";
@@ -316,6 +316,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
rowElements.forEach(item => {
item.remove();
});
+ stickyRow(blockElement, protyle.contentElement.getBoundingClientRect(), "all");
updateHeader(blockElement.querySelector(".av__row"));
}
});
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts
index d5f0dde4f7..1da458510f 100644
--- a/app/src/protyle/render/av/cell.ts
+++ b/app/src/protyle/render/av/cell.ts
@@ -112,7 +112,7 @@ export const cellScrollIntoView = (blockElement: HTMLElement, cellElement: Eleme
// 属性面板
return;
}
- const avHeaderRect = blockElement.querySelector(".av__header").getBoundingClientRect();
+ const avHeaderRect = blockElement.querySelector(".av__row--header").getBoundingClientRect();
if (avHeaderRect.bottom > cellRect.top) {
const contentElement = hasClosestByClassName(blockElement, "protyle-content", true);
if (contentElement) {