Vanessa 2024-04-28 21:55:51 +08:00
parent f2c593b807
commit d97dd394fe

View file

@ -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`;