Set default minWidth for all table columns

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2022-08-25 16:15:34 +03:00
1 parent 6544c08f99
commit fdf3688f81
1 file changed
+2 -1
@@ -25,7 +25,7 @@ import { prevDefault } from "../../utils";
estimateSize: () => 55,
overscan: 5,
count: rows.length,
paddingStart: 35 // header height
paddingStart: 33, // header height
})
return (
@@ -87,5 +87,6 @@ function getCellWidthStyles<T>(table: Table<T>, cell: Cell<T, unknown> | Header<
flexGrow: 1,
flexShrink: 0,
flexBasis: "0%",
minWidth: cell.column.getCanResize() ? '80px' : 'auto',
}
}