Vanessa 2025-07-01 18:30:00 +08:00
parent 0ca321f8d4
commit 0f5df03e87
3 changed files with 5 additions and 33 deletions

View file

@ -504,30 +504,15 @@
table {
margin: 1em 0;
&[style*="direction: ltr"] {
margin-left: unset;
margin-right: auto;
}
&[style*="direction: rtl"] {
&[style*="direction: rtl"]:not([style*="text-align: left"]),
&[style*="text-align: right"] {
margin-left: auto;
margin-right: unset;
}
&[style*="text-align: left"] {
margin-left: unset;
margin-right: auto;
}
&[style*="text-align: center"] {
margin-left: auto;
margin-right: auto;
}
&[style*="text-align: right"] {
margin-left: auto;
margin-right: unset;
}
}
div[data-subtype="math"] {

View file

@ -35,19 +35,8 @@ svg {
}
.protyle-wysiwyg .table[data-node-id] {
&[style*="direction: ltr"] {
margin-left: unset;
margin-right: auto;
}
&[style*="direction: rtl"] {
margin-left: auto;
margin-right: unset;
}
&[style*="text-align: left"] {
margin-left: unset;
margin-right: auto;
&[style*="text-align: left"][style*="direction: rtl"] {
direction: ltr !important;
}
&[style*="text-align: center"] {
@ -57,7 +46,6 @@ svg {
&[style*="text-align: right"] {
margin-left: auto;
margin-right: unset;
}
}

View file

@ -273,9 +273,8 @@ export const setInlineStyle = async (set = true) => {
right: 17px;
left: auto;
}
.b3-typography table {
.b3-typography table:not([style*="text-align: left"]) {
margin-left: auto;
margin-right: unset;
}`;
}
style += `\n:root{--b3-font-size-editor:${window.siyuan.config.editor.fontSize}px}