This commit is contained in:
Vanessa 2022-07-01 10:52:17 +08:00
parent 48933edf55
commit 2846cb406c
3 changed files with 10 additions and 10 deletions

View file

@ -1075,8 +1075,8 @@ export class Gutter {
label: window.siyuan.languages["insert-before"],
accelerator: window.siyuan.config.keymap.editor.general.insertBefore.custom,
click() {
nodeElement.classList.remove("protyle-wysiwyg--select")
countBlockWord([])
nodeElement.classList.remove("protyle-wysiwyg--select");
countBlockWord([]);
insertEmptyBlock(protyle, "beforebegin", id);
}
}).element);
@ -1085,8 +1085,8 @@ export class Gutter {
label: window.siyuan.languages["insert-after"],
accelerator: window.siyuan.config.keymap.editor.general.insertAfter.custom,
click() {
nodeElement.classList.remove("protyle-wysiwyg--select")
countBlockWord([])
nodeElement.classList.remove("protyle-wysiwyg--select");
countBlockWord([]);
insertEmptyBlock(protyle, "afterend", id);
}
}).element);

View file

@ -50,13 +50,13 @@ export const setPadding = (protyle: IProtyle) => {
let min16 = 16;
let min24 = 24;
if (!isMobile()) {
const padding = (protyle.element.clientWidth - Constants.SIZE_EDITOR_WIDTH) / 2
const padding = (protyle.element.clientWidth - Constants.SIZE_EDITOR_WIDTH) / 2;
if (!window.siyuan.config.editor.fullWidth && padding > 96) {
min16 = padding
min24 = padding
min16 = padding;
min24 = padding;
} else if (protyle.element.clientWidth > Constants.SIZE_EDITOR_WIDTH) {
min16 = 96
min24 = 96
min16 = 96;
min24 = 96;
}
if (!window.siyuan.config.editor.fullWidth) {
// 防止右侧分屏后,左侧页签抖动

View file

@ -8,4 +8,4 @@ export const genOptions = (data: string[] | { label: string, name: string }[], k
}
});
return html;
}
};