Skip to content

feat: add hug-to-max column widths and clamped table cells that expand on hover (#1144) - #1145

Draft
KasparsNaglis wants to merge 1 commit into
DataBiosphere:mainfrom
KasparsNaglis:kaspars/1144-table-column-hug-clamp
Draft

KasparsNaglis wants to merge 1 commit into
DataBiosphere:mainfrom
KasparsNaglis:kaspars/1144-table-column-hug-clamp

Conversation

@KasparsNaglis

@KasparsNaglis KasparsNaglis commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1144

What

  • fit-content(Npx) column width. The column hugs short values, wraps long ones at the max, and never shrinks below its hugged width. A narrow screen scrolls the table instead of squeezing columns.
  • meta.maxLines. Clamps a cell to N lines with an ellipsis. The full value expands in place, over the table, after a 300 ms mouse hover or on focus. Column width and row height don't change. You can select text in the expanded value, and Escape closes it. A clamped cell is focusable, so keyboard and touch users can expand it too.
  • IdentityCell maxLines. Clamps the title and the subtitle separately. An expanded collapsable row shows them in full.
  • meta.padding. Sets the cell padding per column, e.g. checkbox for a tight icon column.
  • addWordBreaks. An opt-in helper that lets a folder path wrap after each /.
  • IdentityCell gap. 4px instead of 8px when the cell has no chips.
  • Types. ColumnMeta now imports TableCellProps, so align and padding are type checked. Before, they resolved to any.

Every consuming app gets the gap change on upgrade. The other options only apply where a column config sets them.

🤖 Generated with Claude Code

…d on hover (DataBiosphere#1144)

- add a fit-content(Npx) column width: the column hugs short values,
  wraps long ones at the max, and never shrinks below its hugged width
- add meta.maxLines: clamps a cell to n lines with an ellipsis; the full
  value expands in place after a short mouse hover, or on focus, and
  clamped cells are focusable for keyboard and touch users
- add maxLines to IdentityCell, clamping the title and subtitle each;
  expanded collapsable rows show the content in full
- add meta.padding to set cell padding per column
- add addWordBreaks, an opt-in helper that breaks paths after "/"
- tighten the IdentityCell gap to 4px when it has no chips
- import TableCellProps in the ColumnMeta augmentation, so align and
  padding are type checked

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

Add hug-to-max column widths and clamped table cells that expand on hover

1 participant