Skip to content

Clamp grid cells to the max column width#1464

Merged
sorenbs merged 1 commit intomainfrom
codex/issue-1357-column-max-width
Mar 24, 2026
Merged

Clamp grid cells to the max column width#1464
sorenbs merged 1 commit intomainfrom
codex/issue-1357-column-max-width

Conversation

@sorenbs
Copy link
Copy Markdown
Member

@sorenbs sorenbs commented Mar 24, 2026

Summary

  • enforce the grid table width from the computed column sizes so content cannot blow past the existing max width
  • make writable cell content shrink correctly so oversized JSON and text values render with the standard ellipsis
  • add regression coverage for both the table layout and writable cell display paths

Testing

  • pnpm vitest ui/studio/cell/WriteableCell.test.tsx ui/studio/grid/DataGrid.layout.test.tsx ui/studio/grid/column-sizing.test.ts ui/studio/grid/DataGrid.virtualization.test.tsx
  • pnpm typecheck

fixes #1357

@sorenbs sorenbs merged commit 2711975 into main Mar 24, 2026
@sorenbs sorenbs deleted the codex/issue-1357-column-max-width branch March 24, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v7: Column max width

1 participant