This commit is contained in:
Liang Ding 2023-03-18 10:38:22 +08:00
parent 681318cbb9
commit b81152515c
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
5 changed files with 26 additions and 7 deletions

View file

@ -82,7 +82,7 @@ export class Scroll {
if (protyle.block.showAll) {
this.element.classList.add("fn__none");
} else {
if (protyle.block.childBlockCount > window.siyuan.config.editor.dynamicLoadBlocks) {
if (protyle.block.scroll) {
this.element.classList.remove("fn__none");
} else {
this.element.classList.add("fn__none");

View file

@ -72,7 +72,7 @@ export const onGet = (data: IWebSocketData, protyle: IProtyle, action: string[]
protyle.block.showAll = false;
protyle.block.mode = data.data.mode;
protyle.block.blockCount = data.data.blockCount;
protyle.block.childBlockCount = data.data.childBlockCount;
protyle.block.scroll = data.data.scroll;
protyle.block.action = action;
if (!action.includes(Constants.CB_GET_UNCHANGEID)) {
protyle.block.id = data.data.id;

View file

@ -409,7 +409,7 @@ interface IProtyle {
id: string,
block: {
id?: string,
childBlockCount?: number,
scroll?: boolean
parentID?: string,
parent2ID?: string,
rootID?: string,