Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(share): lay out tables like the app
Elian Doran246c66abdb4a
diff --git a/packages/share-theme/src/content/content.css b/packages/share-theme/src/content/content.cssindex 8927403a17..33f46ac522 100644--- a/packages/share-theme/src/content/content.css+++ b/packages/share-theme/src/content/content.css@@ -260,22 +260,15 @@ body.type-webView {}}-/* table styles */-.ck-content table {- border-collapse: collapse;+/* The tables of the app, which draws them with `ckeditor5-content.css`: Bootstrap's `.table` class+ stretches the `<figure>` to the content's width, and `style.css` centers the cells vertically. A+ resized table keeps the width the figure carries in its `style`. */+.ck-content figure.table {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;+.ck-content .table :is(td, th) {+ vertical-align: middle;}/* Spreadsheet (Univer) tables are emitted as a static <table> whose cells carry their