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

Vanessa34048148a2ba
diff --git a/app/src/protyle/render/av/row.ts b/app/src/protyle/render/av/row.ts
index 72938abeb1..58edd617e2 100644
--- a/app/src/protyle/render/av/row.ts
+++ b/app/src/protyle/render/av/row.ts
@@ -1,4 +1,4 @@
-import {hasClosestBlock, hasClosestByClassName} from "../../util/hasClosest";
+import {hasClosestBlock, hasClosestByClassName, hasTopClosestByAttribute, isInEmbedBlock} from "../../util/hasClosest";
import {focusBlock} from "../../util/selection";
import {Menu} from "../../../plugin/Menu";
import {transaction} from "../../wysiwyg/transaction";
@@ -486,6 +486,16 @@ export const stickyRow = (blockElement: HTMLElement, scrollElement: HTMLElement,
if (blockElement.dataset.avType !== "table") {
return;
}
+ const skipFixed = hasTopClosestByAttribute(blockElement, "fold", "1");
+ if (skipFixed) {
+ blockElement.querySelectorAll(".av__row--header--fixed").forEach((item: HTMLElement) => {
+ removeFixedRow(item, "av__row--header--fixed", "av__row--header-placeholder");
+ });
+ blockElement.querySelectorAll(".av__row--footer--fixed").forEach((item: HTMLElement) => {
+ removeFixedRow(item, "av__row--footer--fixed", "av__row--footer-placeholder");
+ });
+ return;
+ }
const scrollEl = blockElement.querySelector(".av__scroll") as HTMLElement;
if (scrollEl) {
bindHeaderScrollSync(blockElement, scrollEl);