mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-25 00:14:07 +01:00
This commit is contained in:
parent
98455e3b68
commit
58f1cea811
5 changed files with 9 additions and 4 deletions
|
|
@ -57,7 +57,7 @@ export const onGet = (options: {
|
|||
return;
|
||||
}
|
||||
}
|
||||
hideElements(["gutter"], options.protyle);
|
||||
hideElements(["gutterOnly"], options.protyle);
|
||||
options.protyle.block.parentID = options.data.data.parentID;
|
||||
options.protyle.block.parent2ID = options.data.data.parent2ID;
|
||||
options.protyle.block.rootID = options.data.data.rootID;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import {lineNumberRender} from "../render/highlightRender";
|
|||
import {stickyRow} from "../render/av/row";
|
||||
|
||||
export const resize = (protyle: IProtyle) => {
|
||||
hideElements(["gutter"], protyle);
|
||||
hideElements(["gutterOnly"], protyle)
|
||||
const abs = setPadding(protyle);
|
||||
const MIN_ABS = 4;
|
||||
// 不能 clearTimeout,否则 split 时左侧无法 resize
|
||||
|
|
|
|||
|
|
@ -34,5 +34,5 @@ export const setEditMode = (protyle: IProtyle, type: TEditorMode) => {
|
|||
/// #endif
|
||||
resize(protyle);
|
||||
}
|
||||
hideElements(["gutter", "toolbar", "select", "hint", "util"], protyle);
|
||||
hideElements(["gutterOnly", "toolbar", "select", "hint", "util"], protyle);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue