Skip to content

fix(web): constrain preparing shell to the primary content rail - #1751

Merged
chuks-qua merged 2 commits into
mainfrom
fix/thread-preparing-rail-width
Sep 27, 2026
Merged

chuks-qua merged 2 commits into
mainfrom
fix/thread-preparing-rail-width

Conversation

@chuks-qua

@chuks-qua chuks-qua commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

What

The thread preparing view stretched to the full chat pane width while the composer and chat content stay centered on the shared content rail (PRIMARY_CONTENT_RAIL_CLASS, max-width 96rem). On wide panes the startup card rendered noticeably wider than the composer.

The preparing shell now wraps its content in the same PRIMARY_CONTENT_RAIL_CLASS used by Composer and MessageList, so the startup card, queued-message bubble, and composer share one rail and identical left/right edges.

Verified on the live Electron surface at 2400px viewport width. Before video shows the card spanning the full pane; after video shows it aligned with the composer rail.

Why

End users see a jarring width jump when a thread starts: the preparing view is wider than the chat content that replaces it. The view is meant to be as wide as the composer, not wider.

UI Changes

  • Before: startup-card-width-before.mp4 (attached). Card spans the full pane width.
  • After: startup-card-width-after.mp4 (attached). Card aligns with the composer and chat content rail.

Config Changes

None

Review Notes

  • Lint: bun run lint apps/web/src/features/conversation/messages/chat-view/ChatViewSurface.tsx clean.
  • Typecheck: bun run --cwd apps/web typecheck clean.
  • Tests: bun run --cwd apps/web test -- src/features/conversation/messages/__tests__/ChatView.test.tsx 49/49 passed.
startup-card-width-before.mp4
startup-card-width-after.mp4

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

The preparing view stretched to full pane width while the composer and
chat content stay on PRIMARY_CONTENT_RAIL_CLASS, so the startup card
rendered wider than the composer on wide panes.
…rail-width

# Conflicts:
#	apps/web/src/features/conversation/messages/chat-view/ChatViewSurface.tsx
@chuks-qua
chuks-qua merged commit 4b548e3 into main Sep 27, 2026
6 checks passed
@chuks-qua
chuks-qua deleted the fix/thread-preparing-rail-width branch September 27, 2026 16:57
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