mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-17 06:05:29 +01:00
This commit is contained in:
parent
7a9930cebd
commit
9428f64384
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue