We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94dd2e1 commit bdaf112Copy full SHA for bdaf112
1 file changed
apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table/table.tsx
@@ -97,6 +97,7 @@ const EMPTY_COLUMNS: never[] = []
97
const EMPTY_CHECKED_ROWS = new Set<number>()
98
const COL_WIDTH = 160
99
const COL_WIDTH_MIN = 80
100
+const COL_WIDTH_AUTO_FIT_MAX = 1000
101
const CHECKBOX_COL_WIDTH = 40
102
const ADD_COL_WIDTH = 120
103
const SKELETON_COL_COUNT = 4
@@ -830,7 +831,7 @@ export function Table({
830
831
host.removeChild(measure)
832
}
833
- const newWidth = Math.min(Math.ceil(maxWidth), 600)
834
+ const newWidth = Math.min(Math.ceil(maxWidth), COL_WIDTH_AUTO_FIT_MAX)
835
setColumnWidths((prev) => ({ ...prev, [columnName]: newWidth }))
836
const updated = { ...columnWidthsRef.current, [columnName]: newWidth }
837
columnWidthsRef.current = updated
0 commit comments