Repository navigation
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
Draft
KasparsNaglis wants to merge 1 commit into
KasparsNaglis wants to merge 1 commit into
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.IdentityCellmaxLines. 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.checkboxfor a tight icon column.addWordBreaks. An opt-in helper that lets a folder path wrap after each/.IdentityCellgap. 4px instead of 8px when the cell has no chips.ColumnMetanow importsTableCellProps, soalignandpaddingare type checked. Before, they resolved toany.Every consuming app gets the gap change on upgrade. The other options only apply where a column config sets them.
🤖 Generated with Claude Code