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/9567

Vanessaf2766ede4cf6
diff --git a/app/src/assets/scss/protyle/_protyle.scss b/app/src/assets/scss/protyle/_protyle.scss
index 43fe559e4e..1e4b291a6b 100644
--- a/app/src/assets/scss/protyle/_protyle.scss
+++ b/app/src/assets/scss/protyle/_protyle.scss
@@ -390,7 +390,7 @@
}
}
-.protyle-action__table {
+div[contenteditable="true"] .protyle-action__table {
position: absolute;
top: 4px;
height: 0;
diff --git a/app/src/protyle/render/av/row.ts b/app/src/protyle/render/av/row.ts
index 6f3e21b5de..1229564a14 100644
--- a/app/src/protyle/render/av/row.ts
+++ b/app/src/protyle/render/av/row.ts
@@ -91,6 +91,9 @@ export const insertAttrViewBlockAnimation = (blockElement: Element, size: number
};
export const stickyRow = (blockElement: HTMLElement, elementRect: DOMRect, status: "top" | "bottom" | "all") => {
+ if (blockElement.querySelector(".av__title").getAttribute("contenteditable") === "false") {
+ return;
+ }
const scrollRect = blockElement.querySelector(".av__scroll").getBoundingClientRect();
const headerElement = blockElement.querySelector(".av__row--header") as HTMLElement;
if (headerElement && (status === "top" || status === "all")) {