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

Vanessa9428f64384e7
diff --git a/app/src/protyle/render/av/row.ts b/app/src/protyle/render/av/row.ts
index f9cf55d3d5..5210e68d00 100644
--- a/app/src/protyle/render/av/row.ts
+++ b/app/src/protyle/render/av/row.ts
@@ -122,7 +122,7 @@ export const stickyRow = (blockElement: HTMLElement, elementRect: DOMRect, statu
}
};
-const updatePageSize = (currentPageSIze: string, newPageSize: string, protyle: IProtyle, avID:string) => {
+const updatePageSize = (currentPageSIze: string, newPageSize: string, protyle: IProtyle, avID: string) => {
if (currentPageSIze === newPageSize) {
return;
}
@@ -135,9 +135,10 @@ const updatePageSize = (currentPageSIze: string, newPageSize: string, protyle: I
data: currentPageSIze,
avID,
}]);
+ document.querySelector(".av__panel")?.remove();
};
-export const setPageSize = (target: HTMLElement, protyle: IProtyle, avID:string) => {
+export const setPageSize = (target: HTMLElement, protyle: IProtyle, avID: string) => {
const menu = new Menu("av-page-size");
if (menu.isOpen) {
return;