Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 4 https://github.com/siyuan-note/siyuan/issues/16297#issuecomment-3507383198

Danielca499d8e30b4
diff --git a/app/src/protyle/render/av/row.ts b/app/src/protyle/render/av/row.ts
index 3732ee5c81..86291db256 100644
--- a/app/src/protyle/render/av/row.ts
+++ b/app/src/protyle/render/av/row.ts
@@ -2,13 +2,7 @@ import {hasClosestBlock, hasClosestByClassName} from "../../util/hasClosest";
import {focusBlock} from "../../util/selection";
import {Menu} from "../../../plugin/Menu";
import {transaction} from "../../wysiwyg/transaction";
-import {
- genCellValue,
- genCellValueByElement,
- getTypeByCellElement,
- renderCell,
- renderCellAttr
-} from "./cell";
+import {genCellValue, genCellValueByElement, getTypeByCellElement, renderCell, renderCellAttr} from "./cell";
import {fetchPost} from "../../../util/fetch";
import * as dayjs from "dayjs";
import {Constants} from "../../../constants";
@@ -268,6 +262,20 @@ export const setPageSize = (options: {
return;
}
const currentPageSize = options.target.dataset.size;
+ menu.addItem({
+ iconHTML: "",
+ label: "5",
+ checked: currentPageSize === "5",
+ click() {
+ updatePageSize({
+ currentPageSize,
+ newPageSize: "5",
+ protyle: options.protyle,
+ avID: options.avID,
+ nodeElement: options.nodeElement
+ });
+ }
+ });
menu.addItem({
iconHTML: "",
label: "10",