Skip to content

Build your personal knowledge base with Trilium Notes

chore(print/table): stop copying styles and apply own

Elian Doran644e3e200da1
diff --git a/apps/client/src/widgets/collections/table/TablePrintView.css b/apps/client/src/widgets/collections/table/TablePrintView.css
index ce7eec9ec3..14c1e6dc40 100644
--- a/apps/client/src/widgets/collections/table/TablePrintView.css
+++ b/apps/client/src/widgets/collections/table/TablePrintView.css
@@ -8,4 +8,9 @@
.tabulator-print-table th {
background-color: #f0f0f0 !important;
+}
+
+.tabulator-print-table th,
+.tabulator-print-table td {
+ padding: 0.25rem 0.5rem !important;
}
\ No newline at end of file
diff --git a/apps/client/src/widgets/collections/table/TablePrintView.tsx b/apps/client/src/widgets/collections/table/TablePrintView.tsx
index 278df64138..abf73f1eee 100644
--- a/apps/client/src/widgets/collections/table/TablePrintView.tsx
+++ b/apps/client/src/widgets/collections/table/TablePrintView.tsx
@@ -26,7 +26,8 @@ export default function TablePrintView({ note, noteIds, viewConfig }: ViewModePr
data={rowData}
index="branchId"
dataTree={hasChildren}
- printStyled={true}
+ printAsHtml={true}
+ printStyled={false}
onReady={() => {
const tabulator = tabulatorRef.current;
if (!tabulator) return;