Skip to content

fix(mobile): the breadcrumb and tab strip stay inside the screen - #666

Merged
thinkclay merged 1 commit into
mainfrom
fix/mobile-chrome-clipping
Aug 27, 2026
Merged

thinkclay merged 1 commit into
mainfrom
fix/mobile-chrome-clipping

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

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.

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 scrollable keep their scroller.

Breadcrumb had two independent causes, and fixing either alone would not have been enough:

  1. Four crumbs did not fit → collapses to Home > … > Current, keeping the crumb that names where you are.
  2. The last crumb was itself wider than the screen → the label truncates. That needed flexShrink and minWidth: 0 on the item row and its Pressable wrapper; I fixed it at the Text first, the measurement did not move, and that is what sent me to the ancestors.

Verified at 390px

breadcrumb: ["Home", "...", "Review Background Checks"]
tabs: Checks=onscreen Disputes=onscreen Metrics=onscreen Catalog=onscreen Audit Log=onscreen

✓ mobile   rowOverflow=0px columnsOnScreen=4/4 tableClipped=0
✓ desktop  rowOverflow=0px columnsOnScreen=4/4 tableClipped=0

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 no longer needed.

8 new tests. Breadcrumb renders as plain Views so its behaviour is asserted directly — unlike Table, whose rows come from a FlatList that renders nothing in jsdom.

Notes

🤖 Generated with Claude Code

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]>
@thinkclay
thinkclay merged commit 779c515 into main Aug 27, 2026
5 of 7 checks passed
@thinkclay
thinkclay deleted the fix/mobile-chrome-clipping branch August 27, 2026 18:15
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.

fix(mobile): the breadcrumb and tab strip clip off the right edge on a phone

1 participant