On mobile viewports the chat header renders all action buttons (terminal, diff, open-in, git, scripts) inline, which overflows the narrow screen and makes the title unreadable.
Wrap the action buttons in a Popover behind an ellipsis button when isMobile is true. Desktop layout is completely unchanged.
Uses existing useIsMobile() hook, Button, and Popover primitives already established in the codebase.
Related #1441
What Changed#
Why#
UI Changes#
Note
Low Risk
Low risk UI-only change that conditionally alters rendering on mobile viewports; main risk is minor UX/regression in action discoverability or popover layout on small screens.
Overview
On mobile viewports, ChatHeader now collapses the header action controls into an ellipsis-triggered Popover to prevent the title from being pushed off-screen.
The popover contains the existing Terminal/Diff toggles plus project-scoped actions (Open In picker, Git actions, and project scripts) when available, while the desktop/non-mobile inline layout and tooltips remain unchanged.
Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 9915bb90b421596186b9f62dfc9814f25f99e66f. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).
Note
On mobile viewports, the right-side controls in ChatHeader.tsx are now grouped behind a 'More actions' popover (EllipsisIcon button), containing Terminal/Diff toggles and any applicable project controls. Desktop layout is unchanged. Labels replace tooltips inside the popover to suit the mobile context.
Macroscope summarized 9915bb9.
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID:
de0519be-4c4e-47f8-b8b4-90c9c2062bfdYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share