Skip to content

Commit b30541a

Browse files
committed
fix: add table borders for the rich tdxt renderer
1 parent e92b3d5 commit b30541a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

adminforth/spa/src/renderers/RichText.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,19 @@ const htmlContent = protectAgainstXSS(props.record[props.column.name])
2222
/* You can add default styles here if needed */
2323
word-break: break-word;
2424
}
25+
.rich-text :deep(table) {
26+
border-collapse: collapse;
27+
border: 1px solid #ddd;
28+
}
29+
30+
.rich-text :deep(table th),
31+
.rich-text :deep(table td) {
32+
border: 1px solid #ddd;
33+
padding: 8px;
34+
}
35+
36+
.rich-text :deep(table th) {
37+
background-color: #f5f5f5;
38+
font-weight: 600;
39+
}
2540
</style>

0 commit comments

Comments
 (0)