浏览代码

:art: https://github.com/siyuan-note/siyuan/issues/10926

Vanessa 1 年之前
父节点
当前提交
d97dd394fe
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/protyle/ui/initUI.ts

+ 1 - 1
app/src/protyle/ui/initUI.ts

@@ -143,7 +143,7 @@ export const setPadding = (protyle: IProtyle) => {
         protyle.wysiwyg.element.style.padding = `16px ${left}px ${bottomHeight} ${right}px`;
     }
     if (protyle.options.render.background) {
-        protyle.background.element.querySelector(".protyle-background__ia").setAttribute("style", `margin-left:${left}px`);
+        protyle.background.element.querySelector(".protyle-background__ia").setAttribute("style", `margin-left:${left}px;margin-right:${left}px`);
     }
     if (protyle.options.render.title) {
         protyle.title.element.style.margin = `5px ${left}px 0 ${right}px`;