Mobile: Fixes #13637: Fix incorrect zebra striping on tables in the rich text editor (#13663)

This commit is contained in:
mrjo118
2025-11-15 09:02:36 +00:00
committed by GitHub
parent 75544c943c
commit bb1c5792cc
2 changed files with 6 additions and 1 deletions
@@ -9,3 +9,8 @@ table .selectedCell {
th > p:only-child, td > p:only-child {
margin: unset;
}
/* Tables used with ProseMirror do not have a thead, so zebra striping needs be styled separately to the global noteStyle css */
table tr:nth-child(odd) {
background-color: var(--joplin-table-background-color);
}
+1 -1
View File
@@ -344,7 +344,7 @@ export default function(theme: any, options: Options = null) {
}
.jop-tinymce table tr:nth-child(even),
table tr:nth-child(even) {
table:has(thead) tr:nth-child(even) {
background-color: ${theme.tableBackgroundColor};
}