diff --git a/app/src/assets/scss/protyle/_protyle.scss b/app/src/assets/scss/protyle/_protyle.scss index 43fe559e4..1e4b291a6 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 6f3e21b5d..1229564a1 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")) {