mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-10 14:42:33 +01:00
This commit is contained in:
parent
c0a3635809
commit
2d1f12ec33
4 changed files with 26 additions and 10 deletions
|
|
@ -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 = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue