Skip to content

Native: @scaffald/ui Table lays out unreadably on iPad — empty header, glyph row, overlapping cells #768

Closed

Description

@thinkclay

Found on the native iPad pass for #373 (iPad Pro 13" simulator, SDK 56 dev client), after the <Text> render error in the same tables was fixed.

What renders

Office → Workers → Storage Analytics → "Top users by storage consumption" (packages/scf-core/features/office/office-storage-dashboard.tsx, rendered through @scaffald/ui Table via columnsFromTanStack):

  • the header row is an empty ~80pt block
  • below it, a row of seven sort glyphs (⌃⌄) with no column titles
  • the first data row's cells overlap each other: Test User / @test-user-… drawn under 0.0% of 100.0 MB

So the table is unreadable on native. The same component is used by the other Office tables (applications, compliance, transactions) — check each on a device; the storage one is just the first on the landing screen.

Why it's probably structural

packages/ui/src/components/Table/Table.tsx has a stacked card mode for narrow screens and a row/column mode otherwise; the column mode's header and cell widths come from TableColumnHeader.styles.ts / TableCell.styles.ts, which were written for react-native-web where display: table-ish behaviour and minWidth on flex children behave differently than Yoga on native. The empty header block and the glyph row look like the header's title <Text> and its sort control laying out in separate rows, and the cell overlap looks like position: absolute or zero-width flex children.

Not diagnosed further here — it needs the Table's native layout looked at as a whole, not one screen patched.

Acceptance

  • Office tables readable on an iPad Pro simulator (column titles visible, cells do not overlap), screenshot on the PR
  • The same check on an iPhone-width native screen (stacked mode)
  • No change to the web rendering

Activity

  1. added
    bug
    mobile
    on Sep 15, 2026
  2. thinkclay commented on Sep 17, 2026

    @thinkclay
    ContributorAuthor

    Fixed in #794 plus Scaffald/ui#33, #34, #35 (and #36 for the docs-site fallout). It was five layered faults, each visible only after the previous one was fixed: the 768pt off-by-one that never stacked an iPad, the grid mode being a web-only layout (so native now always stacks), formatter strings thrown into a View, a nested FlatList that paints nothing, and a flex: 1 container Yoga collapses to zero. Also: '20%' column widths were 20px on web too.

    Verified on the iPad Pro 13" simulator, Office → Storage Analytics with four seeded rows: labelled cards, no overlap, no empty header block. The iPhone-width check is blocked by #796 — the storage screen does not scroll on a phone, so the table cannot be reached — filed with its own acceptance; stacking is the same code at every native width.

  3. thinkclay commented on Sep 17, 2026

    @thinkclay
    ContributorAuthor

    iPhone half verified in #798 (merged as e19507d). On the iPhone 17 Pro simulator /office/storage now scrolls to "Top users by storage consumption", and the table renders as stacked cards with every column labelled, same as the iPad in #794. The scroll itself was the blocker (#796): the Office stack now wraps every screen in a native ScrollView through the navigator's screenLayout.

    One desktop-web finding came out of the same check and is filed as #799: the same table on web renders cells without column widths and clips its body to ~116 px. Whether that predates #794's Table changes still needs a bisect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Frontendbugmobile

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions