mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
This commit is contained in:
parent
9652f16985
commit
4f7489212e
3 changed files with 11 additions and 9 deletions
|
|
@ -406,8 +406,8 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-subtype="NodeIFrame"],
|
[data-type="NodeIFrame"],
|
||||||
[data-subtype="widget"] {
|
[data-type="NodeWidget"] {
|
||||||
height: 256px;
|
height: 256px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -508,10 +508,12 @@
|
||||||
&.iframe {
|
&.iframe {
|
||||||
// https://ld246.com/article/1644827326901
|
// https://ld246.com/article/1644827326901
|
||||||
// https://github.com/siyuan-note/siyuan/issues/4172
|
// https://github.com/siyuan-note/siyuan/issues/4172
|
||||||
&[data-type="NodeWidget"] .iframe-content,
|
&[data-type="NodeWidget"],
|
||||||
&[data-type="NodeIFrame"] .iframe-content {
|
&[data-type="NodeIFrame"] {
|
||||||
|
.iframe-content {
|
||||||
-webkit-user-modify: read-only;
|
-webkit-user-modify: read-only;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&--drag {
|
&--drag {
|
||||||
.iframe-content::after {
|
.iframe-content::after {
|
||||||
|
|
|
||||||
|
|
@ -2102,7 +2102,7 @@ export class Gutter {
|
||||||
this.genClick(nodeElements, protyle, (e: HTMLElement) => {
|
this.genClick(nodeElements, protyle, (e: HTMLElement) => {
|
||||||
if (e.classList.contains("av")) {
|
if (e.classList.contains("av")) {
|
||||||
e.style.justifyContent = "";
|
e.style.justifyContent = "";
|
||||||
} else if (["NodeIFrame", "widget"].includes(e.getAttribute("data-subtype"))) {
|
} else if (["NodeIFrame", "NodeWidget"].includes(e.getAttribute("data-type"))) {
|
||||||
e.style.margin = "";
|
e.style.margin = "";
|
||||||
} else {
|
} else {
|
||||||
e.style.textAlign = "left";
|
e.style.textAlign = "left";
|
||||||
|
|
@ -2118,7 +2118,7 @@ export class Gutter {
|
||||||
this.genClick(nodeElements, protyle, (e: HTMLElement) => {
|
this.genClick(nodeElements, protyle, (e: HTMLElement) => {
|
||||||
if (e.classList.contains("av")) {
|
if (e.classList.contains("av")) {
|
||||||
e.style.justifyContent = "center";
|
e.style.justifyContent = "center";
|
||||||
} else if (["NodeIFrame", "widget"].includes(e.getAttribute("data-subtype"))) {
|
} else if (["NodeIFrame", "NodeWidget"].includes(e.getAttribute("data-type"))) {
|
||||||
e.style.margin = "0 auto";
|
e.style.margin = "0 auto";
|
||||||
} else {
|
} else {
|
||||||
e.style.textAlign = "center";
|
e.style.textAlign = "center";
|
||||||
|
|
@ -2134,7 +2134,7 @@ export class Gutter {
|
||||||
this.genClick(nodeElements, protyle, (e: HTMLElement) => {
|
this.genClick(nodeElements, protyle, (e: HTMLElement) => {
|
||||||
if (e.classList.contains("av")) {
|
if (e.classList.contains("av")) {
|
||||||
e.style.justifyContent = "flex-end";
|
e.style.justifyContent = "flex-end";
|
||||||
} else if (["NodeIFrame", "widget"].includes(e.getAttribute("data-subtype"))) {
|
} else if (["NodeIFrame", "NodeWidget"].includes(e.getAttribute("data-type"))) {
|
||||||
e.style.margin = "0 0 0 auto";
|
e.style.margin = "0 0 0 auto";
|
||||||
} else {
|
} else {
|
||||||
e.style.textAlign = "right";
|
e.style.textAlign = "right";
|
||||||
|
|
@ -2186,7 +2186,7 @@ export class Gutter {
|
||||||
this.genClick(nodeElements, protyle, (e: HTMLElement) => {
|
this.genClick(nodeElements, protyle, (e: HTMLElement) => {
|
||||||
if (e.classList.contains("av")) {
|
if (e.classList.contains("av")) {
|
||||||
e.style.justifyContent = "";
|
e.style.justifyContent = "";
|
||||||
} else if (["NodeIFrame", "widget"].includes(e.getAttribute("data-subtype"))) {
|
} else if (["NodeIFrame", "NodeWidget"].includes(e.getAttribute("data-type"))) {
|
||||||
e.style.margin = "";
|
e.style.margin = "";
|
||||||
} else {
|
} else {
|
||||||
e.style.textAlign = "";
|
e.style.textAlign = "";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue