mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-02 06:48:49 +01:00
🚨
This commit is contained in:
parent
48933edf55
commit
2846cb406c
3 changed files with 10 additions and 10 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
// 防止右侧分屏后,左侧页签抖动
|
||||
|
|
|
|||
|
|
@ -8,4 +8,4 @@ export const genOptions = (data: string[] | { label: string, name: string }[], k
|
|||
}
|
||||
});
|
||||
return html;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue