Skip to content

Rail: show Recent runs and the backend indicator below md - #37

Merged
wilsonhj merged 2 commits into
mainfrom
fix/mobile-rail-runs
Oct 30, 2026
Merged

wilsonhj merged 2 commits into
mainfrom
fix/mobile-rail-runs

Conversation

@wilsonhj

Copy link
Copy Markdown
Owner

What was wrong

Below the md breakpoint (768 px), components/shell/rail.tsx hid the rail footer with max-md:hidden. That footer holds the only nav link to Recent runs (/runs) and the Demo · local mock / Comfy backend indicator, so on a phone /runs was unreachable from the nav and the demo badge never showed.

Reproduce (before)

Open any page at 375×812: the rail shows the app name and the four tool links, but no Recent runs link and no backend indicator. The new e2e test fails on main at getByRole("link", { name: "Recent runs" }) → not visible.

Change

Replace max-md:hidden on the footer with max-md:mb-0 max-md:flex-row max-md:flex-wrap max-md:items-center max-md:gap-x-4, so below md it renders as one wrapped row under the tool links (same treatment the tool nav already gets). Desktop classes are unchanged.

At 375 px the rail is ~201 px tall and document.documentElement.scrollWidth stays 375 on /, /runs and /photoshoot (no horizontal scroll).

Tests

  • tests/e2e/smoke.spec.ts: new test at 375×812 asserts the Recent runs link and the backend indicator are visible in the rail and that the page is not wider than 375 px. Fails before, passes after.
  • pnpm lint, pnpm typecheck, pnpm test (415 pass), and tests/e2e/smoke.spec.ts (8 pass).

🤖 Generated with Claude Code

wilsonhj and others added 2 commits October 30, 2026 14:10
Below 768 px the rail's footer (Recent runs link, demo/backend indicator)
was `max-md:hidden`, so on a phone /runs had no nav entry and the demo
badge never showed. Keep it visible and lay it out as a row there, like
the tool links above it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	tests/e2e/smoke.spec.ts
@wilsonhj
wilsonhj merged commit 359046b into main Oct 30, 2026
1 check passed
wilsonhj added a commit that referenced this pull request Oct 31, 2026
Below 768 px the rail's footer (Recent runs link, demo/backend indicator)
was `max-md:hidden`, so on a phone /runs had no nav entry and the demo
badge never showed. Keep it visible and lay it out as a row there, like
the tool links above it.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant