mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
This commit is contained in:
parent
4a2a422c69
commit
9ae773dd3c
3 changed files with 12 additions and 15 deletions
|
|
@ -97,21 +97,7 @@ export const setPadding = (protyle: IProtyle) => {
|
|||
} else {
|
||||
protyle.wysiwyg.element.style.padding = `16px ${min16}px ${bottomHeight} ${min24}px`;
|
||||
}
|
||||
if (!isMobile()) {
|
||||
// 防止右侧分屏后,左侧页签抖动;10 为滚动条宽度
|
||||
if (!protyle.options.backlinkData && // https://github.com/siyuan-note/siyuan/issues/6099
|
||||
!window.siyuan.config.editor.fullWidth) {
|
||||
protyle.wysiwyg.element.style.width = (protyle.element.clientWidth - 10) + "px";
|
||||
if (protyle.options.render.title) {
|
||||
protyle.title.element.style.width = (protyle.element.clientWidth - min16 - min24 - 10) + "px";
|
||||
}
|
||||
} else {
|
||||
protyle.wysiwyg.element.style.width = "";
|
||||
if (protyle.options.render.title) {
|
||||
protyle.title.element.style.width = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
protyle.wysiwyg.element.style.transition = ""; // addWnd 时防止向右分屏,左侧文档抖动,移除动画
|
||||
if (window.siyuan.config.editor.codeSyntaxHighlightLineNum) {
|
||||
setTimeout(() => { // https://github.com/siyuan-note/siyuan/issues/5612
|
||||
protyle.wysiwyg.element.querySelectorAll('.code-block [contenteditable="true"]').forEach((block: HTMLElement) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue