Skip to content

Build your personal knowledge base with Trilium Notes

chore(print/table): address review

Elian Doranab14bdbb18f1
diff --git a/apps/client/src/widgets/collections/table/TablePrintView.css b/apps/client/src/widgets/collections/table/TablePrintView.css
index 74e282aafe..fef53c299f 100644
--- a/apps/client/src/widgets/collections/table/TablePrintView.css
+++ b/apps/client/src/widgets/collections/table/TablePrintView.css
@@ -1,20 +1,20 @@
-.tabulator-print-table table,
-.tabulator-print-table th,
-.tabulator-print-table tr,
-.tabulator-print-table td {
- border: 1px solid black !important;
+.table-print-view .tabulator-print-table table,
+.table-print-view .tabulator-print-table th,
+.table-print-view .tabulator-print-table tr,
+.table-print-view .tabulator-print-table td {
+ border: 1px solid black;
border-collapse: collapse;
}
-.tabulator-print-table th {
- background-color: #f0f0f0 !important;
+.table-print-view .tabulator-print-table th {
+ background-color: #f0f0f0;
}
-.tabulator-print-table th,
-.tabulator-print-table td {
- padding: 0.25rem 0.5rem !important;
+.table-print-view .tabulator-print-table th,
+.table-print-view .tabulator-print-table td {
+ padding: 0.25rem 0.5rem;
}
-.tabulator-print-table td[aria-checked] svg path {
- fill: currentColor !important;
+.table-print-view .tabulator-print-table td[aria-checked] svg path {
+ fill: currentColor;
}
\ No newline at end of file
diff --git a/apps/client/src/widgets/collections/table/data.tsx b/apps/client/src/widgets/collections/table/data.tsx
index b77a1545ed..94909939db 100644
--- a/apps/client/src/widgets/collections/table/data.tsx
+++ b/apps/client/src/widgets/collections/table/data.tsx
@@ -15,7 +15,7 @@ export interface TableConfig {
}
export default function useData(note: FNote, noteIds: string[], viewConfig: TableConfig | undefined, newAttributePosition: RefObject<number | undefined> | undefined, resetNewAttributePosition: () => void) {
- const [ maxDepth ] = useNoteLabelInt(note, "maxNestingDepth") ?? -1;
+ const [ maxDepth ] = useNoteLabelInt(note, "maxNestingDepth");
const [ includeArchived ] = useNoteLabelBoolean(note, "includeArchived");
const [ columnDefs, setColumnDefs ] = useState<ColumnDefinition[]>();