💄 Improve the alignment in table exports (#14994)

This commit is contained in:
Jeffrey Chen 2025-07-01 17:47:00 +08:00 committed by GitHub
parent 4ee542e06e
commit 0ca321f8d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 40 additions and 2 deletions

View file

@ -504,12 +504,29 @@
table {
margin: 1em 0;
&[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: center"] {
margin: auto;
margin-left: auto;
margin-right: auto;
}
&[style*="text-align: right"] {
margin-left: auto;
margin-right: unset;
}
}

View file

@ -35,12 +35,29 @@ 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: center"] {
margin: auto;
margin-left: auto;
margin-right: auto;
}
&[style*="text-align: right"] {
margin-left: auto;
margin-right: unset;
}
}