chore(print/table): address review

This commit is contained in:
Elian Doran 2025-11-21 22:33:48 +02:00
parent 8dc43dab59
commit ab14bdbb18
No known key found for this signature in database
2 changed files with 13 additions and 13 deletions

View File

@ -1,20 +1,20 @@
.tabulator-print-table table, .table-print-view .tabulator-print-table table,
.tabulator-print-table th, .table-print-view .tabulator-print-table th,
.tabulator-print-table tr, .table-print-view .tabulator-print-table tr,
.tabulator-print-table td { .table-print-view .tabulator-print-table td {
border: 1px solid black !important; border: 1px solid black;
border-collapse: collapse; border-collapse: collapse;
} }
.tabulator-print-table th { .table-print-view .tabulator-print-table th {
background-color: #f0f0f0 !important; background-color: #f0f0f0;
} }
.tabulator-print-table th, .table-print-view .tabulator-print-table th,
.tabulator-print-table td { .table-print-view .tabulator-print-table td {
padding: 0.25rem 0.5rem !important; padding: 0.25rem 0.5rem;
} }
.tabulator-print-table td[aria-checked] svg path { .table-print-view .tabulator-print-table td[aria-checked] svg path {
fill: currentColor !important; fill: currentColor;
} }

View File

@ -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) { 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 [ includeArchived ] = useNoteLabelBoolean(note, "includeArchived");
const [ columnDefs, setColumnDefs ] = useState<ColumnDefinition[]>(); const [ columnDefs, setColumnDefs ] = useState<ColumnDefinition[]>();