Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

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

@ammar-agent ammar-agent force-pushed the ui-project branch 5 times, most recently from 8637101 to 6ab5766 Compare November 6, 2025 21:11
- Project Sidebar: Single-line display with styled basename (increases density)
  - Previously showed project name + abbreviated path on two lines
  - Now shows abbreviated path with bold basename on one line
  - Added splitAbbreviatedPath() utility with tests
  - Applied to both project items and drag preview

- ChatInput: Fix responsive controls hiding
  - Replace broken container query syntax (max-@[Xpx]) with media queries
  - Mode switch hides at 550px, thinking slider at 550px, context at 450px
  - Prevents line-breaking of controls on constrained viewports

- Mobile features: Only apply to touch devices (pointer: coarse)
  - 44px min-height/width buttons only on touch devices
  - Hamburger menu only shows on touch devices
  - Sidebar overlay only on touch devices
  - Mobile layout stacking only on touch devices
  - Fixes flashing sidebar when resizing desktop browser
  - Fixes chat disappearing on small desktop viewports

Desktop users can now resize browser windows without triggering mobile UI.
Touch devices still get optimized mobile interface.

_Generated with `cmux`_
@ammario ammario merged commit c1f6440 into main Nov 6, 2025
13 of 14 checks passed
@ammario ammario deleted the ui-project branch November 6, 2025 21:18
@ammar-agent
Copy link
Collaborator Author

Integration test failure is unrelated to UI changes - timing test failed by 581ms (expected <10s, got 10.581s). This test is timing-sensitive and occasionally flakes in CI. Test passes locally. Re-running checks.

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.

2 participants