Repository navigation
fix(Table): native always stacks, and a percentage column width is a percentage - #33
Merged
Merged
Conversation
…percentage The grid mode is a web layout: a horizontal ScrollView around an unbounded '100%' View around a vertical FlatList with a sticky header. Yoga renders it as an empty header block, a row of sort glyphs, and cells drawn over each other — every Office table on an iPad (Scaffald/SaaS#768), which at 768pt portrait was not even below the default breakpoint. Cards are the native-safe rendering at every width; stackBelow still governs web. Also: a column width of '20%' was parseFloat'd to 20px, on web too. Co-Authored-By: Claude Fable 5.1 <[email protected]>
thinkclay
added a commit
that referenced
this pull request
Sep 17, 2026
…on the first stacked render (#34) A column's render may return a plain string or number. The grid path's TableCell wraps those in <Text>; the stacked path put them straight into a <View>, which react-native-web tolerates and native throws on. Nobody saw it because native never stacked until #33. Scaffald/SaaS#768. Co-authored-by: Claude Fable 5.1 <[email protected]>
thinkclay
added a commit
to Scaffald/SaaS
that referenced
this pull request
Sep 17, 2026
… as cards on an iPad (#794) * fix(native): no cookie sheet on iOS/Android — native answers consent implicitly, and the privacy answers are written down Fixes #764. Also the pre-submit checklist line #765 asked for. Co-Authored-By: Claude Fable 5.1 <[email protected]> * chore(ui): bump @scaffald/ui to Scaffald/ui#33 — Table stacks on native, percentage widths Part of #768. Co-Authored-By: Claude Fable 5.1 <[email protected]> * chore(ui): bump @scaffald/ui to Scaffald/ui#34 — stacked lines wrap bare strings in Text Part of #768. Co-Authored-By: Claude Fable 5.1 <[email protected]> * fix(table-columns): call formatter cells directly so their strings reach a <Text> flexRender turns any function into a React component, so a formatter's string return came back inside an element that isValidElement waved through and native then rendered as a bare child of the stacked <View>. Every Office table on an iPad. Part of #768. Co-Authored-By: Claude Fable 5.1 <[email protected]> * chore(ui): bump @scaffald/ui to Scaffald/ui#35 — stacked rows paint on native Part of #768. Co-Authored-By: Claude Fable 5.1 <[email protected]> * chore(lockfile): drop lucide-react, which Scaffald/ui#31 removed from the ui package Pulled in by the pointer bumps; CI's frozen install refused the stale lockfile. Co-Authored-By: Claude Fable 5.1 <[email protected]> * chore(ui): bump @scaffald/ui to Scaffald/ui#36 — docs-site no longer aliases to the removed lucide-react Part of #768; unblocks CI on #794. Co-Authored-By: Claude Fable 5.1 <[email protected]> --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
This was referenced Sep 17, 2026
Open
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.
What
Scaffald/SaaS#768: every Office table was unreadable on an iPad — empty header block, a row of sort glyphs, cells drawn over each other.
'100%'View → vertical FlatList with a sticky header); Yoga does not lay it out. An iPad in portrait is exactly 768pt, soviewportWidth < 768never stacked it, and landscape never would. NewshouldStackTable(platformOS, width, stackBelow): cards on every native width,stackBelowunchanged on web.TableCell.stylesandTableColumnHeader.stylesranparseFloaton string widths, so'20%'rendered a 20px cell — on web as well. NewresolveColumnWidthpasses'20%'through and keeps treating other strings as pixels.Verification
4 new tests pin both decisions as functions (a FlatList renders nothing under jsdom, same reason as Table.stacked.test). Existing 11 Table tests pass; tsc and biome clean. Simulator screenshots of the Office tables on an iPad Pro and an iPhone are on the Scaffald/SaaS PR that bumps the pointer.
🤖 Generated with Claude Code