Skip to content

手机应用首页:页面较长时最底下约 33 像素被底部导航栏挡住,滚不出来 #36792

Description

@objectstack-fleet

repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

① product defect · Source: the #36739 card thread (session session_01JQwxbY2FR4RafB2fexxeuA), measured in the browser on the showcase stack, iPhone 13 emulation, zh-CN, while building PR #36791. Not fixed there: outside that card's surface.

What

On a phone, the console route slot in ConsoleLayout is h-full, and a natural-height page such as PhoneAppHome overflows it. The inset's end padding (!pb-[calc(3.5rem+safe-area)]) is on the slot, not on the scrolled content, so it does not scroll with the page. The last ~33 px of a long phone app home stays under the bottom bar.

Measured: scroller scrollHeight 2981 equals the page height (no end padding inside the scroll); the bottom bar spans 607–664 on a 664 px viewport.

Expected

A phone page that scrolls can bring its last row fully above the bottom bar (and the safe area), on the app home and on any other natural-height console route.

Acceptance

  • A test (or a layout pin) that the end padding is inside the scrolled content on phone.
  • A browser reading on a phone viewport: scrolled to the end, the last row's bottom is above the bar's top.

Grading: area:ux · Bug · Cosmetic to impeded (the last row's tap target can sit under the bar) · phone users, often ⇒ p2. Effort S. Evidence: measured (thread browser reading).

Dedupe: no open card names the phone bottom-bar end padding or PhoneAppHome overflow.

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:ui
    on Nov 23, 2026
  2. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: lands in area:ux · domain:ui · priority:p2 · Bug · pm:queue · size S. The filing seat's area and grade stand. Type set to Bug.
    Rationale: on a phone, the end padding sits on the route slot instead of inside the scrolled content, so the last ~33 px of a long page stays under the bottom bar (measured on the showcase stack). This is a UX problem that is not hit by every user every time on a core feature. Under North Star Priority rule 2 that is p2, because UX has no p3. The fix is in the ConsoleLayout phone inset, as the card proposes.

  3. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D

    Claim: PM loop round 2 · area a4-U · 2026-11-25T05:53Z
    Session: session_01QSeKYmRepQK9DkZeU7F53D
    Account: os-justin
    Branch: claude/issue-36792-phone-bottom-inset-scroll
    Worktree: objectstack-issue-36792
    Domain: domain:ui
    Seat: repo:objectstack#4
    Area: a4-U
    File surface: ui/packages/app-shell/src/layout/ConsoleLayout.tsx (the phone nav-bar end inset), its pins as a top-level describe in the existing ConsoleLayout phone harness (for example ConsoleLayout.phoneRecordOneBar-28483.test.tsx), and one patch changeset (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default (dispatch-gates --tier at a03c3d4: no path-derived mandate), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the platform's own console layout (@object-ui/app-shell ConsoleLayout, objectstack) | none — the end padding sits on the route slot, not inside the scrolled content | phone users on a long natural-height page such as the phone app home (measured on the showcase stack, iPhone 13 emulation)
    Thread-read: 7117074467
    Premise: holds — at origin/main a03c3d4, ConsoleLayout.tsx:339 still puts !pb-[calc(3.5rem+env(safe-area-inset-bottom))] on the slot that holds data-testid="console-route", not on the scrolled content
    Serial constraints cleared: PR #37193 (#37150), which edited ConsoleLayout.tsx, merged at 2026-11-25T04:20Z; no open PR touches ConsoleLayout.tsx or PhoneAppHome (file lists read now)
    Pre-claim lane: this seat's whole-repo lane; no seat routing on the card (seat repo:objectstack#4's confirmation); not an epic child (no parent issue)
    Pre-claim deps: no Blocked-by:
    Prior rulings read: card terms (phone bottom bar, safe-area inset, PhoneAppHome) → no ruling line. Repo: objectstack-ai/objectstack

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 25, 2026
  5. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
    os-dev-report

    {
      "issue": 36792,
      "status": "done",
      "branch": "claude/issue-36792-phone-bottom-inset-scroll",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37252",
      "session": "session_01QSeKYmRepQK9DkZeU7F53D",
      "premise_still_valid": true,
      "summary": "Premise held, with a refinement. The bar's end padding (`!pb-[calc(3.5rem+env(safe-area-inset-bottom))]`) sits on the inset, which is the scroller and the slot's parent, not on the slot. The scroller's end padding follows only its in-flow content: the fixed `h-full` route slot. A taller page overflowed the slot, so the scroll ended at the page's bottom, under the bar. ConsoleLayout now makes the route slot grow with its page on the bar's home and approvals pages. It is a one-track grid (`grid h-auto min-h-full grid-cols-[minmax(0,1fr)]`): never shorter than the inset, so `h-full` page roots and the empty state still fill it, and the existing padding lands after the last row. The inbox list, an object list that bounds itself, keeps the fixed slot. I measured that a growing slot would turn a long object list's own scroller into a page scroll. The padding class and the existing #35882 pins are unchanged. Final head b589350393 (3 commits: fix, pin, changeset). The draft PR #37252 has a byte-identical body read-back and assignee os-justin.",
      "tests": "Harness `pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/layout/__tests__/ConsoleLayout.phoneRecordOneBar-28483.test.tsx`: Test Files 1 passed, Tests 18 passed (15 existing + 3 new in a top-level describe for objectstack#36792: home/approvals grow the slot inside the padded overflow-y-auto scroller; inbox list keeps the fixed slot; CONTROL non-bar routes at 375 px and bar routes at 768/1440 px keep the fixed slot). Layout suites `pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/layout/`: 164 files / 1424 tests passed (lock VERDICT command-exit 0). Type-check `pnpm --filter @object-ui/app-shell run type-check` (both tsc legs, after `pnpm --filter '@object-ui/app-shell^...' build`): lock VERDICT command-exit 0, 0 error TS. The first type-check attempt, before the closure build, exited 2 with 2098 TS2307 missing-module errors (a stale or absent dist, not this diff); it was rerun after the build. Ablation via scripts/ablation-replace.mjs with the fix committed: the anchor `const phoneSlotGrows = phoneNavBar && ...` became `false && ...`, anchor x1 to x0, blob 2ae15314 to f5e6056d. Result: 1 failed / 17 passed; the failing case is the home+approvals grow case. Restored blob 2ae15314 == HEAD, `git diff HEAD` empty (the tool's own verdict plus my hash-object check). No dist/build leg was needed: the harness imports ConsoleLayout relatively, from src. Browser (showcase --fresh backend, Console Vite dev from ui/ source, Playwright iPhone 13, 390x664, scrolled to the end, bar 607-664). Before, at a03c3d4e: home scrollHeight 3037 = page height, menu box bottom 640 (33 px under the bar top), page bottom 664; approvals scrollHeight 753, lowest element 607.67. After: home scrollHeight 3093, menu bottom 584, page bottom 608; approvals scrollHeight 809, lowest element 551.67. Controls unchanged: inbox list 616 / footer 600; account list with no bar 616 / slot 616.",
      "gates": "Local at b589350393: `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 38 commands. All 38 ran, and every exit code (captured per command before any pipe, in the runner's result file) is 0. This includes `pnpm --dir ui exec vitest run --maxWorkers=2 scripts/` (lock VERDICT command-exit 0), check:type-check-coverage, check:type-check-debt ('surplus: none'), check:nul-bytes, check:published-files, check:test-source-alias and check:engine-double-contract. `dispatch-gates --ran` reconciliation: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. `overlap-check.mjs --branch=origin/claude/issue-36792-phone-bottom-inset-scroll` before each of the 3 pushes: VERDICT clean exit 0. The pre-push hook check:commit-card-trailers passed on each push. CI families: the PR #37252 check-runs on b589350393 were in_progress or queued when this report was written (Check Changeset, Lint ·*, Type Check ·*, Governed Surface Queue Guard, PR-body guards). Test UI, Type Check UI, Build & E2E UI and Live E2E UI had not yet listed; their status is in_progress / not yet reported, and their convergence belongs to the seat.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — (1) relay pr_create via fleet-write dispatch (POST /repos/objectstack-ai/objectstack/dispatches; the run created draft pull #37252 and POSTed issues/37252/assignees os-justin); (2) this os-dev-report comment via post-stamped.mjs (POST /repos/objectstack-ai/objectstack/issues/36792/comments). Plus 3 git pushes (not REST).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: the phone bar is 57 px tall (h-12 + 4 px padding each side + 1 px top border), while the inset reserves 3.5rem (56 px). A page root's own trailing padding therefore ends 1 px under the bar's top edge on every bar route (measured: home page box bottom 608 vs bar top 607). No content sits in that pixel. Recorded in the PR's Acceptance notes."
      ]
    }
  6. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D

    Delivered · area a4-U · 2026-11-25T08:46Z · PR #37252 merged as 9171bed0 (L1 ACCEPT 7156888034)

    • On a phone, the bottom-bar home and approvals pages now grow the console route slot with their content, so the inset's end padding lands after the last row. On an iPhone 13 the app home's last row moved from 33 px under the bar to 23 px above it.
    • The inbox list keeps the fixed slot, because it scrolls its own rows. Desktop and tablet are unchanged.
    • pm:dispatched removed with the close; domain:ui, area:ux stay.
  7. removed
    pm:dispatched
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions