💄 Improve the alignment in table exports (#14990)

This commit is contained in:
Jeffrey Chen 2025-06-08 22:34:14 +08:00 committed by GitHub
parent 9ab2033242
commit 8a9d0136a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 0 deletions

View file

@ -229,6 +229,16 @@
border-spacing: 0;
width: max-content;
&[style*="text-align: left"] {
margin-right: auto;
}
&[style*="text-align: center"] {
margin: auto;
}
&[style*="text-align: right"] {
margin-left: auto;
}
tr:nth-child(even) td {
background-color: var(--b3-table-even-background);
}

View file

@ -34,6 +34,18 @@ svg {
}
}
.protyle-wysiwyg .table[data-node-id] {
&[style*="text-align: left"] {
margin-right: auto;
}
&[style*="text-align: center"] {
margin: auto;
}
&[style*="text-align: right"] {
margin-left: auto;
}
}
@media print {
// 尽量避免块内分页
.protyle-wysiwyg [data-node-id] {