1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Set default minWidth for all table columns

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-08-25 16:15:34 +03:00
parent 6544c08f99
commit fdf3688f81

View File

@ -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',
}
}