Merge pull request 'ширина столбцов по умолчанию' (#62) from fix-front into test

Reviewed-on: #62
This commit is contained in:
PotapovaA 2026-06-22 13:57:42 +03:00
commit 361eeb24bb

View File

@ -104,6 +104,15 @@ export const getTableColumns = ({
const processColumns = (columns, EditCell, Cell) => {
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 }) => (
<Cell
row={row}