mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 23:38:49 +01:00
This commit is contained in:
parent
59f1e155e6
commit
f2766ede4c
2 changed files with 4 additions and 1 deletions
|
|
@ -390,7 +390,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
.protyle-action__table {
|
||||
div[contenteditable="true"] .protyle-action__table {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
height: 0;
|
||||
|
|
|
|||
|
|
@ -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")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue