From f2766ede4cf69bc264cdc077717adaeb2dcf88b8 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 23 Nov 2023 23:45:54 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/9567 --- app/src/assets/scss/protyle/_protyle.scss | 2 +- app/src/protyle/render/av/row.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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")) {