fix(web): consolidate header actions into overflow menu on mobile#1551
Open
henrik092 wants to merge 1 commit intopingdotgg:mainfrom
Open
fix(web): consolidate header actions into overflow menu on mobile#1551henrik092 wants to merge 1 commit intopingdotgg:mainfrom
henrik092 wants to merge 1 commit intopingdotgg:mainfrom
Conversation
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 pingdotgg#1441
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the 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. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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,
ChatHeadernow collapses the header action controls into an ellipsis-triggeredPopoverto 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 for commit 9915bb9. This will update automatically on new commits. Configure here.
Note
Consolidate chat header actions into overflow menu on mobile
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.