ширина столбцов по умолчанию

This commit is contained in:
PotapovaA 2026-06-22 13:57:24 +03:00
parent bb74f511af
commit ca11d55228

View File

@ -104,6 +104,15 @@ export const getTableColumns = ({
const processColumns = (columns, EditCell, Cell) => { const processColumns = (columns, EditCell, Cell) => {
columns.forEach((col) => { columns.forEach((col) => {
if (col.header.length > 15) {
col.size = 250;
}
if(col.header.length >= 20){
col.size = 350;
}
if(col.header.length >= 30){
col.size = 400;
}
col.Cell = ({ cell, table, column, row }) => ( col.Cell = ({ cell, table, column, row }) => (
<Cell <Cell
row={row} row={row}