Vanessa 2023-11-23 23:45:54 +08:00
parent 59f1e155e6
commit f2766ede4c
2 changed files with 4 additions and 1 deletions

View file

@ -390,7 +390,7 @@
}
}
.protyle-action__table {
div[contenteditable="true"] .protyle-action__table {
position: absolute;
top: 4px;
height: 0;

View file

@ -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")) {