Skip to content

Add mobile layout#28

Merged
qduc merged 5 commits intomainfrom
claude/add-mobile-nav-01CY9QdeNBQDCJryLk3bqyAu
Nov 23, 2025
Merged

Add mobile layout#28
qduc merged 5 commits intomainfrom
claude/add-mobile-nav-01CY9QdeNBQDCJryLk3bqyAu

Conversation

@qduc
Copy link
Copy Markdown
Owner

@qduc qduc commented Nov 23, 2025

No description provided.

claude and others added 5 commits November 23, 2025 07:22
Implement comprehensive mobile navigation and responsive design:

**Mobile Navigation (< 768px):**
- Add hamburger menu buttons in header for toggling sidebars
- Sidebars overlay content instead of pushing it
- Dark backdrop when sidebars are open
- Smooth slide-in/out transitions
- Auto-close sidebars when backdrop is clicked

**Responsive Components:**
- ChatHeader: Compact layout, responsive padding, mobile toggle buttons
- ChatSidebar: Full-width overlay on mobile (288px-320px)
- RightSidebar: Full-width overlay on mobile, disable resize
- MessageInput: Responsive padding, icon-only buttons, smaller controls
- Scroll buttons: Adjusted position for mobile

**Desktop (>= 768px):**
- Maintain existing static sidebar behavior
- Keep resizable right sidebar
- Show full button labels and larger controls

All changes use Tailwind responsive breakpoints (sm:, md:) for
seamless mobile-to-desktop experience.
Add mobile detection on initial mount to automatically collapse both
sidebars when viewport width < 768px (md breakpoint).

**Changes:**
- Detect mobile viewport on component mount
- Auto-collapse left and right sidebars if on mobile device
- Track window resize for responsive behavior
- Use ref to ensure auto-collapse only happens once on mount

This ensures mobile users start with a clean, full-width view
without sidebars obscuring the main chat interface. Users can
still toggle sidebars using hamburger menu buttons as needed.
Fix tool dropdown visibility issues on mobile devices:

**Tools Dropdown:**
- Change from absolute to fixed positioning on mobile
- Full width on mobile (left-2 right-2) with proper margins
- Position at bottom of screen (bottom-20) to avoid overlap
- Add max-height constraint (60vh) for scrollability on mobile
- Maintain original 420px width and positioning on desktop (sm:)

**Attach Dropdown:**
- Slightly larger width on desktop (sm:w-56) for better touch targets
- Maintain 192px (w-48) on mobile for better fit

The tool dropdown now:
- Displays properly centered on mobile screens
- Doesn't overflow viewport boundaries
- Provides adequate scrolling for long tool lists
- Maintains desktop behavior unchanged
@qduc qduc merged commit 656bdde into main Nov 23, 2025
3 checks passed
@qduc qduc deleted the claude/add-mobile-nav-01CY9QdeNBQDCJryLk3bqyAu branch November 29, 2025 12:59
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