Skip to content

fix(ui): Office tables on desktop web — cells take their column's width, body not clipped - #804

Merged
thinkclay merged 2 commits into
mainfrom
fix/web-table-widths
Sep 17, 2026
Merged

thinkclay merged 2 commits into
mainfrom
fix/web-table-widths

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

Closes #799.

What

Bumps @scaffald/ui to Scaffald/ui#37, plus a two-line fix to the storage page's title row.

Not a #794 regression. With the pre-#794 Table/ directory restored on the current ui, the same page measured worse (body 84 px, header 255 px below the search box). Three long-standing faults in the web grid:

  1. Undeclared columns had no width. Header cells sized to title + sort glyph, data cells to their text, the row wrapper to 150 px per column. columnSizing() now gives an undeclared column flex: 1 with a 150 px minimum, applied identically to header and cells; rows lay out at the measured body width so slack is shared rather than left empty.
  2. Non-pressable cells lost their whole container style. TableCell handed a function style to a plain View (valid only on Pressable), so every cell without onPress had no height, padding, border, direction, or width.
  3. flex: 1 container and body inside a content-sized Card. Chrome resolved that chain to 116 px and clipped the grid to a row and a half; Yoga resolved it to zero on native (Native: @scaffald/ui Table lays out unreadably on iPad — empty header, glyph row, overlapping cells #768). Both are content-sized now, and grid rows are a plain map like the stacked rows. A consumer wanting a bounded, internally scrolling table passes style={{ flex: 1 }}; none does.

The title row on /office/storage also let its description Stack take full width and pushed the Refresh button off a phone's right edge (noted on #798); the Stack is flex={1} now.

Measured (headless Chromium, signed in as the demo office user)

before after
storage header "Total Usage" 124 px at x 405 194 px at x 515
storage cell "65.0 MB" 54 px at x 382 194 px at x 515
storage body scroller 116 px holding 232 px none, 4 rows rendered
/office/cms/workers columns uneven four at 204 px
storage page at 390 px, document width 636 px 390 px

At 390 px web the table still stacks to labelled cards. Native is unaffected: the stacked branch uses neither TableCell nor styles.body, and stackedContainer is unchanged.

Tests: ui Table.grid.test.ts pins the sizing rule and the content-sized containers; full ui suite 709/709. pnpm prepush green.

🤖 Generated with Claude Code

thinkclay and others added 2 commits September 17, 2026 07:57
…, 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]>
…ger pushed off the right edge

Co-Authored-By: Claude Fable 5.1 <[email protected]>
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.

Web: the Office storage table renders cells without column widths and clips the body to ~116 px on desktop

1 participant