Skip to content

Commit

Permalink
fix: provide a good cell size based on row content
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Jul 25, 2024
1 parent 19d1d1a commit 2e1fd81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/gui/table-optimized/OptimizeTableState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ export default class OptimizeTableState {
const currentCell = dataResult.rows[i];
if (currentCell) {
maxSize = Math.max(
(currentCell[headerName ?? ""]?.toString() ?? "").length
(currentCell[headerName ?? ""]?.toString() ?? "").length,
maxSize
);
}
}
Expand Down

0 comments on commit 2e1fd81

Please sign in to comment.