Repository navigation
fix(mobile): five Office routes stop scrolling sideways on a phone - #872
Merged
Merged
Conversation
The issue blamed the web Table's 150px column floor. That was wrong, and
measuring said so: `stackBelow` already defaults to 768, so the Table
stacks into cards at 390 and was never the overflow. Walking the DOM for
elements wider than the viewport found three unrelated causes, none of
them the table.
**A text block beside a button, with nothing allowed to shrink.**
`<Row justify="space-between">` holding a bare `<Stack>` of title and
description next to a Refresh button. React Native defaults `flexShrink`
to 0, unlike the web, so the text keeps its content width and the row
pushes past the screen — 460px on Payment Analytics, 412 on Violation
Reports. `flex={1} minWidth={0}` on the text side fixes it, which is the
same treatment `BlockedUsersSection.tsx:54` already uses. Six screens
carried the pattern; all six are fixed, including the three that were
not yet overflowing but would at a longer title.
**Six status filters on one line.** `/office/oauth-apps` laid them in a
`nowrap` Row. They wrap now: a filter scrolled out of frame is one the
user does not know exists — the same call the Tabs strip made.
**Three form fields side by side.** `/office/cms/projects/create` put
Status, Start date and End date in one Row of `flex={1}` children, and
the same `flexShrink: 0` default kept them at content width. They wrap,
with a 200px floor each.
Measured at 390, before → after:
/office/payments 571 → 390
/office/violations 524 → 390
/office/transactions 522 → 390
/office/cms/projects/create 505 → 390
/office/oauth-apps 491 → 390
A 94-capture sweep of every `/office` and `/employers` route at 390
reports zero horizontal scroll.
Closes #858
Co-Authored-By: Claude Opus 5 <[email protected]>
This was referenced Sep 21, 2026
Contributor
Author
3 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 #858. Found by the release-1 route sweep (#852). Independent — branches from
main.The issue's premise was wrong
It blamed the web Table's 150px column floor. Measuring said otherwise:
stackBelowalready defaults to 768, so the Table stacks into cards at 390 and was never the overflow. I wrote that hypothesis from reading the code; walking the DOM for elements wider than the viewport found three unrelated causes, none of them the table.What it actually was
1. A text block beside a button, with nothing allowed to shrink.
<Row justify="space-between">holding a bare<Stack>of title and description next to a Refresh button. React Native defaultsflexShrinkto 0, unlike the web, so the text keeps its content width and the row pushes past the screen — 460px on Payment Analytics, 412 on Violation Reports.flex={1} minWidth={0}on the text side fixes it, the same treatmentBlockedUsersSection.tsx:54already uses. Six screens carried the pattern; all six are fixed, including three that were not yet overflowing but would at a longer title.2. Six status filters on one line.
/office/oauth-appslaid them in anowrapRow. They wrap now — a filter scrolled out of frame is one the user does not know exists, the same call the Tabs strip made.3. Three form fields side by side.
/office/cms/projects/createput Status, Start date and End date in one Row offlex={1}children, and the sameflexShrink: 0default kept them at content width. They wrap, with a 200px floor each.Measured
At a 390px viewport,
documentElement.scrollWidth:/office/payments/office/violations/office/transactions/office/cms/projects/create/office/oauth-appsA 94-capture sweep of every
/officeand/employersroute at 390 reports zero horizontal scroll.nx run scf-core:test1175/1175, typecheck andpnpm prepushclean.No change to
packages/ui— the Table is fine, and the desktop grid tuned in #799/#804 is untouched.🤖 Generated with Claude Code