Repository navigation
fix(mobile): the breadcrumb and tab strip stay inside the screen - #666
Merged
Merged
Conversation
Closes #664. Two pieces of page chrome ran past the right edge of a 390px phone with nothing saying they continued: Home > Office > ATS > Review Background Ch… cut mid-word Checks Disputes Metrics Catalog Audit Lo… fifth tab half off-frame The tab is the one that matters. A clipped label is ugly; a clipped tab is a navigation target the user does not know exists. Scaffald/ui#25 fixes both. Tabs wrap below 768 rather than running off — wrapping, not scrolling, for the same reason the filter chip strip wraps: an item out of frame is an item nobody knows is there. The breadcrumb collapses to "Home > … > Current", keeping the crumb that names where you are, and its label truncates so a single long crumb cannot overflow on its own. smoke-wide-tables.mjs now ASSERTS the chrome instead of reporting it. It was reported-not-asserted while #664 was open, so the table smoke would not go permanently red for something it did not own. That distinction is gone now that the chrome is fixed. ✓ mobile rowOverflow=0px columnsOnScreen=4/4 tableClipped=0 ✓ desktop rowOverflow=0px columnsOnScreen=4/4 tableClipped=0 and, checked directly: breadcrumb: ["Home", "...", "Review Background Checks"] tabs: all five on screen Submodule pointer: 14e11f7..b0ab20c Co-Authored-By: Claude Opus 5 <[email protected]>
8 of 10 tasks
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.
Closes #664.
Two pieces of page chrome ran past the right edge of a 390px phone with nothing saying they continued:
The tab is the one that matters. A clipped label is ugly; a clipped tab is a navigation target the user does not know exists.
The fix (Scaffald/ui#25)
Tabs wrap below 768 rather than running off. Wrapping, not scrolling, for the same reason the filter chip strip wraps: an item out of frame is an item nobody knows is there. Five short tabs take two lines and all five are reachable. Callers who passed
scrollablekeep their scroller.Breadcrumb had two independent causes, and fixing either alone would not have been enough:
Home > … > Current, keeping the crumb that names where you are.flexShrinkandminWidth: 0on the item row and its Pressable wrapper; I fixed it at theTextfirst, the measurement did not move, and that is what sent me to the ancestors.Verified at 390px
smoke-wide-tables.mjsnow asserts the chrome instead of reporting it. It was reported-not-asserted while #664 was open so the table smoke would not go permanently red for something it did not own; that distinction is no longer needed.8 new tests.
Breadcrumbrenders as plain Views so its behaviour is asserted directly — unlikeTable, whose rows come from aFlatListthat renders nothing in jsdom.Notes
14e11f7..b0ab20c.--no-verify(fix(hooks): pre-commit lints the whole ui submodule on a pointer bump, blocking every bump #470: pre-commit lints the whole submodule on a pointer bump).pnpm prepushfailed once and passed on retry reading 7/7 from the Nx cache, which could have masked a real build failure — so I re-ran@scaffald/ui:build --skip-nx-cacheand confirmed it clean. The first run raced the submodule reset.🤖 Generated with Claude Code