Skip to content

Conversation

@kylecarbs
Copy link
Member

Ensures all elements scale properly within the mobile viewport (≤768px).

Changes

Fixed Width Constraints

All hardcoded pixel widths now use responsive min() values to prevent horizontal overflow:

  • Tool call previews (BashToolCall, FileReadToolCall, FileEditToolCall): min(400px, 80vw)
  • User message images: min(300px, calc(100vw - 100px))
  • ModelSelector: Display min(150px, 40vw), input min(200px, 60vw), dropdown min(300px, 85vw)
  • Tooltips: min(300px, calc(100vw - 40px))
  • Error toasts: min(400px, calc(100vw - 40px))

Mobile Header Optimization

  • Workspace path hidden on mobile: The full path is now hidden on screens ≤768px to save header space, while the project/workspace name remains visible

Testing

Desktop behavior is unchanged - all min() values use the original pixel widths on wide screens. On mobile, elements now scale down to fit the viewport without causing horizontal scrolling.

Generated with cmux

Ensure all elements scale properly on mobile devices:

- Tool call previews (BashToolCall, FileReadToolCall, FileEditToolCall): Use min(400px, 80vw) to prevent horizontal overflow
- User message images: Use min(300px, calc(100vw - 100px)) to fit within viewport
- ModelSelector: Scale display (40vw), input (60vw), and dropdown (85vw) on narrow screens
- Tooltips: Use min(300px, calc(100vw - 40px)) to prevent edge overflow
- Error toasts: Use min(400px, calc(100vw - 40px)) to stay within viewport
- Workspace path: Hidden on mobile (≤768px) to save header space while keeping project name visible

All fixed widths now use responsive min() values to ensure content never exceeds the viewport width on mobile devices.

Generated with `cmux`
@kylecarbs kylecarbs merged commit dee39f5 into main Oct 21, 2025
9 checks passed
@kylecarbs kylecarbs deleted the mobile-view branch October 21, 2025 18:45
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