From ab14bdbb18f1a2a8243bbf3fa8a8f2a3c91571b3 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 21 Nov 2025 22:33:48 +0200 Subject: [PATCH] chore(print/table): address review --- .../collections/table/TablePrintView.css | 24 +++++++++---------- .../src/widgets/collections/table/data.tsx | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/apps/client/src/widgets/collections/table/TablePrintView.css b/apps/client/src/widgets/collections/table/TablePrintView.css index 74e282aaf..fef53c299 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 b77a1545e..94909939d 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 | undefined, resetNewAttributePosition: () => void) { - const [ maxDepth ] = useNoteLabelInt(note, "maxNestingDepth") ?? -1; + const [ maxDepth ] = useNoteLabelInt(note, "maxNestingDepth"); const [ includeArchived ] = useNoteLabelBoolean(note, "includeArchived"); const [ columnDefs, setColumnDefs ] = useState();