Repository navigation
Conversation
…ft edge The four layouts each invented their own spacing, and because three of them expressed it through the *named* padding scale the divergence did not look like divergence in the source: `'2xl'` is 16, `'lg'` is 10, `'sm'` is 6, so a 32px gutter and a 16px gutter both read as "the big one". Measured at 1440, the page title started at x=332 under DashboardLayout, x=316 under Profile and Assessments, x=314 under Office, and x=340 on the Office CMS screens, which paid the gutter twice — OfficePageLayout added its own 8px on top of the layout's. `SCREEN_RHYTHM` and `useScreenRhythm` hold the numbers once, as plain numbers, and all four layouts read them. The values follow DashboardLayout: it was already the most airy and the closest to the prototype, whose design system runs a 1.15x density scale and asks for room rather than tightness. The seven Office screens that render no layout at all set their own `padding="md"`, so they took the gutter from the same hook rather than from a token that happens to be 8. OfficeLayout also moves off `useWindowDimensions`, which `.radium/scaffald-ui.md` forbids: it registers a listener per component where `useResponsive` shares one subscription, and enough of them mounting at once is how "Maximum update depth exceeded" happens. It also carried its own `width > 800` threshold, so Office collapsed to one column at a different width than the rest of the app. Measured after, signed in, at 1440 and 390: route desktop mobile /communities x=332 y=32 x=16 y=68 /jobs/saved x=332 y=32 x=16 y=68 /dashboard/notifications x=332 y=32 x=16 y=68 /profile x=332 y=32 x=16 y=68 /assessments x=332 y=32 x=16 y=68 /office/applications x=332 y=56 x=16 y=92 /office/cms/jobs x=332 y=140 x=16 y=212 One left edge, everywhere, at both widths. The remaining y differences are content above the title — Office screens carry a breadcrumb and a secondary tab strip that other screens do not — rather than rhythm. `/office/storage` and `/office/violations` still have no heading: they render no layout and no ScreenHeader. #816 reaches them. Refs #851 Co-Authored-By: Claude Opus 5 <[email protected]>
This was referenced Sep 21, 2026
thinkclay
added a commit
that referenced
this pull request
Sep 22, 2026
* fix(mobile): five Office routes stop scrolling sideways on a phone
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]>
* feat(redesign): the last two screens without a heading get one
The route sweep found 120 of 200 captures with no heading in the
accessibility tree. #864 closed almost all of it by moving the title into
the four layouts, and #873 reached the Office lists through
OfficePageLayout. These two were left: they render no layout at all — the
Office navigator's screenLayout only wraps them in a scroller — and each
drew its own title as a plain `<Text>` inside a space-between Row.
Both take `ScreenHeader` instead, with the description as the tip and
Refresh in the actions slot, so a page-level action sits at header right
like everywhere else.
Measured, signed in:
/office/storage "Storage Analytics" heading found
/office/violations "Anti-Circumvention Violation Reports" heading found
at 1440 and 390, no horizontal scroll at either. They sit at x=308/8
rather than the app's 332/16 because this branch is off main and does not
carry the screen rhythm; #865 moves them onto the shared gutter along
with every other Office screen.
Closes #860
Co-Authored-By: Claude Opus 5 <[email protected]>
---------
Co-authored-by: Claude Opus 5 <[email protected]>
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 #851. Release 1, epic #847. Stacked on #864 — this PR targets that branch so the diff shows only the rhythm work. Merge #864 first and GitHub will retarget this to
main.The problem, and why it hid
The four layouts each invented their own spacing. Three expressed it through the named padding scale, and that is what kept the divergence invisible in the source:
'2xl'is 16,'lg'is 10,'sm'is 6, so a 32px gutter and a 16px gutter both read as "the big one".Measured at 1440, before:
OfficePageLayoutadding its own 8px on top of the layout'sThe change
SCREEN_RHYTHManduseScreenRhythm(packages/scf-core/constants/layout.ts) hold gutter, vertical padding, section gap, column gap and row gap once, as plain numbers. A layout reaching for'2xl'cannot tell you what it will get without opening the token file; that is how this drift happened in the first place.The values follow DashboardLayout — already the most airy and the closest to the prototype, whose design system runs a 1.15× density scale and asks for room rather than tightness.
Seven Office screens render no layout at all and set their own
padding="md"; they now take the gutter from the same hook.OfficeLayoutalso moves offuseWindowDimensions, which.radium/scaffald-ui.mdforbids. It registers a listener per component whereuseResponsiveshares one subscription, and enough of them mounting together is how "Maximum update depth exceeded" happens. It also carried its ownwidth > 800threshold, so Office collapsed to one column at a different width than everywhere else.Verified in the browser
Signed in as the office user, reading each rendered heading's
getBoundingClientRect:/communities/jobs/saved/dashboard/notifications/profile/assessments/office/applications/office/cms/jobsOne left edge, everywhere, at both widths — 22 distinct positions before #864, three after it, one here. The remaining y differences are content above the title: Office screens carry a breadcrumb and a secondary tab strip that other screens do not.
nx run scf-core:test1175/1175, typecheck clean,pnpm prepushclean.Still open, deliberately
/office/storageand/office/violationshave no heading at all — they render no layout and noScreenHeader. feat(redesign): ListToolbar on the Office and admin list screens #816 reaches them; fix(a11y): 120 of 200 captured screens have no programmatic page heading #860 tracks the count./office/violationsstill scrolls sideways at 390. That is fix(ui): five Office routes scroll sideways on a phone — the web Table gives every column a 150px floor #858, the web Table's 150px column floor, untouched here.🤖 Generated with Claude Code