Fix dialog footer button clipping in Git actions dialog#2458
Conversation
- Let footer actions wrap on small screens - Expand dialog buttons to avoid clipped labels
|
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)
Comment |
ApprovabilityVerdict: Approved CSS-only changes adding Tailwind classes to fix button layout/clipping in a dialog footer. No logic or behavior modifications - purely visual adjustments for responsive display. You can customize Macroscope's approvability policy. Learn more. |
|
Rendered the default-branch confirmation dialog on the home page with a long branch name ( Result: the footer actions stay inside the dialog bounds; the long |
|
Uploaded the screenshot here: Backup gist: https://gist.github.com/juliusmarminge/49c1b2a57f41085112a563a93053a613 |
|
Updated the approach to truncate the long branch action instead of wrapping it, so the footer stays on one line. Backup gist: https://gist.github.com/juliusmarminge/4614839438e619c91b00e5719dd1c44f |
|
Updated the dialog approach again: the confirmation button now uses stable location-based copy ( Screenshot matrix covering desktop/mobile and short/long branch names: Backup gist: https://gist.github.com/juliusmarminge/116e9a5c664d91f4ea013cffc548fff4 |
|
Updated desktop sizing: the default-branch confirmation dialog is wider on desktop and the footer stays on one line for both Backup gist: https://gist.github.com/juliusmarminge/2c8462f14ad05d6f76a3ad48cff78e2f |
Co-authored-by: Julius Marminge <julius@macmini.local>
Summary
smbreakpoints.Testing
Note
Low Risk
Low risk UI-only change: adjusts dialog footer and button Tailwind classes to wrap and size correctly on small screens without affecting git action logic.
Overview
Fixes the default-branch confirmation dialog footer layout so buttons no longer clip on small screens.
The footer now wraps at
smand the three actions use full-width, multi-line-safe button styling on mobile while keeping the existing auto-width desktop layout.Reviewed by Cursor Bugbot for commit dd45c05. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Fix button clipping in Git actions dialog footer on small screens
Updates the
DialogFooterlayout in GitActionsControl.tsx to stack buttons vertically on small screens. Buttons become full-width with wrapping-friendly styles on small screens and revert to auto-width on larger screens.Macroscope summarized dd45c05.