An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 数据库行数限制后添加行
Vanessa5df68c9cead6
diff --git a/app/src/protyle/render/av/row.ts b/app/src/protyle/render/av/row.tsindex a36e06effb..f2772e54a7 100644--- a/app/src/protyle/render/av/row.ts+++ b/app/src/protyle/render/av/row.ts@@ -90,6 +90,13 @@ export const insertAttrViewBlockAnimation = (blockElement: Element, srcIDs: stri</div>`;});previousElement.insertAdjacentHTML("afterend", html);+ const pageSize = parseInt(blockElement.getAttribute("data-page-size"))+ if (pageSize) {+ const currentCount = blockElement.querySelectorAll(".av__row:not(.av__row--header)").length+ if (pageSize < currentCount) {+ blockElement.setAttribute("data-page-size", currentCount.toString());+ }+ }};export const stickyRow = (blockElement: HTMLElement, elementRect: DOMRect, status: "top" | "bottom" | "all") => {