Repository navigation
fix(app-shell): on a phone, the bottom bar pages scroll their last row out from under the bar - #37252
Merged
objectstack-fleet[bot] merged 3 commits intoNov 25, 2026
Conversation
…t scrolls (#36792) Claude-Session: https://claude.ai/code/session_01QSeKYmRepQK9DkZeU7F53D Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYmRepQK9DkZeU7F53D Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYmRepQK9DkZeU7F53D Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D Final head for L1 · area a4-U · 2026-11-25T07:44Z
|
Contributor
Author
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
Contributor
Author
|
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D Landing · area a4-U · 2026-11-25T08:23Z · head
State change: ready for review + auto-merge armed; the queue lands it. On MERGED the card #36792 closes through |
objectstack-fleet
Bot
deleted the
claude/issue-36792-phone-bottom-inset-scroll
branch
November 25, 2026 08:46
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.
Fixes #36792
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
While the phone bottom bar is drawn (the app home, the inbox list and the approvals inbox, below 768 px), the console inset, the element that scrolls, keeps the bar's height as end padding. A scroll container's end padding only follows its in-flow content. The route slot (
data-testid="console-route") was a fixedh-fullbox. A page taller than the inset (the phone app home with a long menu, or a long approvals inbox) overflowed that slot. The scroll then ended at the page's own bottom, and its last rows stayed under the bar.ConsoleLayoutnow grows the route slot with its page on the bar's home and approvals pages. The slot is a one-track grid (grid h-auto min-h-full grid-cols-[minmax(0,1fr)]), so:h-fullstill resolves against its stretched row. A short page or the empty state fills the inset as before;minmax(0,1fr)keeps a wide page from widening the slot.The inset's padding class is unchanged.
The inbox list keeps the fixed slot. It is an object list page: it bounds itself and scrolls its rows in its own box (objectui#12463). A growing slot would unbind a long list. I measured this: on a long object list, a growing slot turned the list's own scroller into a page scroll. Every route without the bar, and every route from 768 px up, also keeps the fixed slot.
Responsibility:
@object-ui/app-shellConsoleLayout.Read first:
ui/packages/app-shell/src/layout/ConsoleLayout.tsx, thephoneSlotGrowsflag and the slot'scn(...). This is the risky hunk: it decides which bar routes grow.ui/packages/app-shell/src/layout/__tests__/ConsoleLayout.phoneRecordOneBar-28483.test.tsx, the new top-leveldescribefor objectstack#36792.Two-minute check: open the showcase app home in iPhone 13 emulation and scroll to the end. The menu's last row ends above the bottom bar's top edge, and the bar no longer covers it.
Tests
describe('a phone bar page's end inset scrolls with its content (objectstack#36792)')sits in the existing ConsoleLayout phone harness. It has three cases:min-h-full,h-auto, noh-full, oneminmax(0,1fr)track) inside the paddedoverflow-y-autoscroller.pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/layout/__tests__/ConsoleLayout.phoneRecordOneBar-28483.test.tsx: 18/18 passed (15 existing + 3 new).pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/layout/: 164 files, 1424 tests passed.pnpm --filter @object-ui/app-shell run type-check(both tsc legs, after building the closure@object-ui/app-shell^...): exit 0.Ablation (one-off,
scripts/ablation-replace.mjs): the fix commit is on HEAD; the mutation reverts the flag toconst phoneSlotGrows = false && ....git diff HEADis empty.Acceptance notes
pb-6on the phone app home) ends 1 px under the bar's top edge after the fix. The cause is that the bar is 57 px tall (h-12, 4 px padding each side, plus its 1 px top border), while the inset reserves 3.5rem (56 px). No content sits there: the menu's last row ends 23 px above the bar. The same 1 px applies to every bounded page on the bar routes today. Noted, not filed.Verification
Browser reading: the showcase stack (own
--freshbackend, the Console's Vite dev server readingui/source), Chromium with Playwrightdevices['iPhone 13'](viewport 390 x 664). On each route I scrolled the inset to its end and read the rects. The bar spans 607 to 664 in every reading.Gates (local, at b589350)
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 38 commands. All 38 were run, and each exited 0 (exit captured per command before any pipe). The two named in the dispatch's ui-scripts family:pnpm --dir ui exec vitest run --maxWorkers=2 scripts/: VERDICT command-exit 0.pnpm check:type-check-debt: exit 0, "surplus: none".--ranreconciliation: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN.node scripts/pm/overlap-check.mjs --branch=origin/claude/issue-36792-phone-bottom-inset-scrollbefore each push: VERDICT clean exit 0.The CI-owned runs (Lint & Repo Gates, Test UI, Type Check UI, Build & E2E UI, Live E2E UI and the rest) are this PR's check-runs.
Generated by Claude Code