You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🤖 fix: use container queries for responsive chat controls (#526)
Chat controls now compact based on actual available space instead of
window size.
## Problem
Responsive chat controls used viewport-based media queries
(`max-[550px]`) which checked the entire window width. When dev tools
were open, the window was still wide even though the component had less
space, so controls didn't compact.
## Solution
Use CSS container queries instead of viewport media queries:
- Mark control bar as container context with `@container`
- Replace `max-[550px]` with `[@container(max-width:550px)]`
- Controls now respond to their actual container width
## Testing
- ✅ `make typecheck` passes
- ✅ `make lint` passes
- ✅ `make test` passes (955/956 tests)
- Manually verified controls compact correctly when dev tools open
_Generated with `cmux`_
0 commit comments