Skip to content

Commit 809dcd0

Browse files
committed
improvement(tables): bump column auto-fit cap from 600px to 1000px
1 parent 94dd2e1 commit 809dcd0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table/table.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ const EMPTY_COLUMNS: never[] = []
9797
const EMPTY_CHECKED_ROWS = new Set<number>()
9898
const COL_WIDTH = 160
9999
const COL_WIDTH_MIN = 80
100+
const COL_WIDTH_AUTO_FIT_MAX = 1000
100101
const CHECKBOX_COL_WIDTH = 40
101102
const ADD_COL_WIDTH = 120
102103
const SKELETON_COL_COUNT = 4
@@ -830,7 +831,7 @@ export function Table({
830831
host.removeChild(measure)
831832
}
832833

833-
const newWidth = Math.min(Math.ceil(maxWidth), 600)
834+
const newWidth = Math.min(Math.ceil(maxWidth), COL_WIDTH_AUTO_FIT_MAX)
834835
setColumnWidths((prev) => ({ ...prev, [columnName]: newWidth }))
835836
const updated = { ...columnWidthsRef.current, [columnName]: newWidth }
836837
columnWidthsRef.current = updated

0 commit comments

Comments
 (0)