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
🤖 refactor: improve UI density and fix mobile-only features (#516)
## Changes
### Project Sidebar - Increased Density
Previously showed project name and abbreviated path on two lines:
```
ProjectName
/U/a/P/c/project-name
```
Now shows single line with styled basename:
```
/U/a/P/c/project-name
```
Where directory path is muted and basename is bold/prominent. Same
visual hierarchy with 50% less vertical space.
- Added `splitAbbreviatedPath()` utility function
- Added comprehensive tests for the new utility
- Applied to both project list items and drag preview
### ChatInput - Fixed Responsive Control Hiding
- Replaced broken container query syntax (`max-@[Xpx]:hidden`) with
media queries
- Mode switch & thinking slider hide at 550px
- Context 1M checkbox hides at 450px
- Prevents controls from wrapping to multiple lines on constrained
viewports
### Mobile Features - Touch Device Only
Fixed all mobile-specific UI to only activate on touch devices
(`pointer: coarse`), not just small viewports:
- 44px minimum touch targets only on touch devices
- Hamburger menu button only on touch devices
- Sidebar overlay only on touch devices
- Mobile layout stacking only on touch devices
**Fixes:**
- ✅ No more flashing sidebar when resizing desktop browser
- ✅ No more broken button sizes on small desktop viewports
- ✅ Chat no longer disappears on small desktop viewports
- ✅ Desktop users can resize windows without triggering mobile UI
- ✅ Touch devices still get optimized mobile interface
## Testing
- ✅ All tests pass (955 pass)
- ✅ TypeScript compilation clean
- ✅ ESLint checks pass
- Tested responsive behavior at various viewport sizes
_Generated with `cmux`_
0 commit comments