Skip to content

Build your personal knowledge base with Trilium Notes

feat(share-theme): add borders to tables matching the dark/light theme

Wael Nasreddineb08126ec2b44
diff --git a/packages/share-theme/src/styles/content.css b/packages/share-theme/src/styles/content.css
index 25804ebbee..309ab0e210 100644
--- a/packages/share-theme/src/styles/content.css
+++ b/packages/share-theme/src/styles/content.css
@@ -82,7 +82,19 @@ body.type-webView {
}
/* table styles */
+.ck-content table {
+ border-collapse: collapse;
+ width: 100%;
+}
+
.ck-content table td,
.ck-content table th {
min-width: 120px;
+ border: 1px solid var(--background-highlight);
+ padding: 8px;
+}
+
+.ck-content table th {
+ background-color: var(--background-secondary);
+ font-weight: bold;
}