Vanessa 2025-11-22 21:55:03 +08:00
parent c0a3635809
commit 2d1f12ec33
4 changed files with 26 additions and 10 deletions

View file

@ -2102,6 +2102,8 @@ export class Gutter {
this.genClick(nodeElements, protyle, (e: HTMLElement) => {
if (e.classList.contains("av")) {
e.style.justifyContent = "";
} else if (["NodeIFrame", "widget"].includes(e.getAttribute("data-subtype"))) {
e.style.margin = "";
} else {
e.style.textAlign = "left";
}
@ -2116,6 +2118,8 @@ export class Gutter {
this.genClick(nodeElements, protyle, (e: HTMLElement) => {
if (e.classList.contains("av")) {
e.style.justifyContent = "center";
} else if (["NodeIFrame", "widget"].includes(e.getAttribute("data-subtype"))) {
e.style.margin = "0 auto";
} else {
e.style.textAlign = "center";
}
@ -2130,6 +2134,8 @@ export class Gutter {
this.genClick(nodeElements, protyle, (e: HTMLElement) => {
if (e.classList.contains("av")) {
e.style.justifyContent = "flex-end";
} else if (["NodeIFrame", "widget"].includes(e.getAttribute("data-subtype"))) {
e.style.margin = "0 0 0 auto";
} else {
e.style.textAlign = "right";
}
@ -2180,6 +2186,8 @@ export class Gutter {
this.genClick(nodeElements, protyle, (e: HTMLElement) => {
if (e.classList.contains("av")) {
e.style.justifyContent = "";
} else if (["NodeIFrame", "widget"].includes(e.getAttribute("data-subtype"))) {
e.style.margin = "";
} else {
e.style.textAlign = "";
e.style.direction = "";