Repository navigation
fix(Table): web grid cells take their column's width and the body is not clipped - #37
Merged
Merged
Conversation
…not clipped
Three faults, all older than #794 (the same table measured worse with the
pre-#794 Table restored: body 84px, header 255px below the search box):
1. A column with no declared width got no width at all. The header sized
to its title and sort glyph, each data cell to its own text, and the
row wrapper to 150px per column — a 124px "Total Usage" heading over a
54px "65.0 MB" cell, every row's values running together. `columnSizing`
now gives an undeclared column `flex: 1` with a 150px minimum, applied
identically to header and cells, and the rows are laid out at the
measured body width so the slack is shared instead of left empty.
2. Cells without `onPress` were handed a function style, which a plain
View ignores. Every non-pressable text cell — most of them — rendered
with no height, padding, border, direction or width. The function form
is used only when the container is a Pressable.
3. The container and body were `flex: 1` inside a content-sized Card.
Yoga resolved that to zero on native (#768); Chrome resolved it to
116px and clipped the grid to a header and a row and a half. Both are
content-sized now, and the grid's rows are a plain map like the stacked
rows, since a FlatList needs a bounded height to earn its keep. A
consumer that wants a bounded, internally scrolling table passes
`style={{ flex: 1 }}` itself; none does today.
Measured on /office/storage at 1700px: header and cell both 194px wide at
the same x, four rows rendered, no inner scroller; /office/cms/workers
shows four even 204px columns.
Scaffald/SaaS#799
Co-Authored-By: Claude Fable 5.1 <[email protected]>
thinkclay
added a commit
to Scaffald/SaaS
that referenced
this pull request
Sep 17, 2026
…th, body not clipped (#804) * fix(ui): bump @scaffald/ui — web grid cells take their column's width, body not clipped (#799) Pulls Scaffald/ui#37. The Office storage table on desktop web rendered data cells at their text width under headers of another width and clipped its body to 116px; the same held for every Table without declared column widths. Measured after: header and cell both 194px at the same x on /office/storage, four rows rendered, no inner scroller; /office/cms/workers shows four even 204px columns. Co-Authored-By: Claude Fable 5.1 <[email protected]> * fix(office): the storage page title row fits a phone — Refresh no longer pushed off the right edge Co-Authored-By: Claude Fable 5.1 <[email protected]> --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
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.
Fixes Scaffald/SaaS#799. None of it is a #794 regression: with the pre-#794
Table/restored, the same page measured worse (body 84 px, header 255 px below the search box).Three faults
columnSizing()gives an undeclared columnflex: 1with a 150 px minimum, applied identically to header and cells; rows are laid out at the measured body width so the slack is shared.TableCellpassed a function style to a plainView(it is only valid onPressable), so every cell withoutonPresshad no height, padding, border, direction, or width. The function form is now used only when the container is a Pressable.flex: 1container and body inside a content-sized Card. Yoga resolved it to zero on native (#768); Chrome resolved it to 116 px and clipped the grid to a row and a half. Both are content-sized now, and grid rows are a plain map like the stacked rows (a FlatList needs a bounded height to be worth having). A consumer that wants a bounded, internally scrolling table passesstyle={{ flex: 1 }}; none does today.Measured
/office/storageheader "Total Usage"/office/cms/workerscolumnsNative is unaffected: the stacked branch does not use
TableCellorstyles.body, andstackedContaineris unchanged.Tests:
Table.grid.test.tspins the sizing rule and the content-sized containers. Full ui suite 709/709,tscclean,pnpm buildclean.🤖 Generated with Claude Code