Skip to content

Conversation

@labkey-alan
Copy link
Contributor

@labkey-alan labkey-alan commented Dec 17, 2025

Rationale

This PR updates how our grids are styled in order to improve the spacing on our columns. This is accomplished by adding a new table-cell-content class that is rendered in most table cells (some columns render their own <td> element and may not have been updated to render table-cell-content), which lets the table cell content expand to the maximum size of the content, up to 300px, then wraps. This PR also removes any way to override the width of columns, column size is now dictated by the content and the browser table layout algorithm, which overall does a much better job at sizing columns.

Related Pull Requests

Changes

  • GridColumn: remove width, fixedWidth properties
    • Add css class for text align and getTextAlignClassName helper
  • Grid: improve styling for columns

@labkey-alan labkey-alan self-assigned this Dec 17, 2025
@labkey-alan labkey-alan force-pushed the fb_col_widths branch 2 times, most recently from 2ec6e88 to 2302941 Compare December 22, 2025 22:52
@labkey-alan labkey-alan force-pushed the fb_col_widths branch 3 times, most recently from 8ba110c to 9f76730 Compare January 6, 2026 16:41
@labkey-alan labkey-alan merged commit 96eb767 into develop Jan 6, 2026
3 checks passed
@labkey-alan labkey-alan deleted the fb_col_widths branch January 6, 2026 18:36
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.

3 participants