Repository navigation
fix(dashboard): align terminal-dialog close X with compact header - #9816
Conversation
The default DialogContent close button is absolutely positioned at top-4/right-4 for standard p-6 dialogs; the agent terminal dialog uses p-0 with a compact py-2 header, so the X floated below the title line. Render the close control inside the header row instead so it centers with the title and matches the header's horizontal padding.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThe agent terminal dialog now uses a custom header close button with an X icon and localized screen-reader label, while disabling the default dialog close button. Existing dialog open and close wiring remains unchanged. English, Spanish, Japanese, Korean, and Chinese locale bundles now include a terminal close label. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
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 |
|
Live-terminal QA (requested): same rig but with a real PTY attached to the dialog ( Measured in the popout: the X's vertical center sits exactly on the title centerline, and its right edge aligns with the footer button's gutter. Clicking the X closes the dialog. Note for reviewers: an earlier re-test appeared to still show the misaligned X — that was a stale QA window from a previous dev instance (its vite port had been reclaimed by another worktree's server); the fresh instance below runs this branch. |
…ablyai#9816) The default DialogContent close button is absolutely positioned at top-4/right-4 for standard p-6 dialogs; the agent terminal dialog uses p-0 with a compact py-2 header, so the X floated below the title line. Render the close control inside the header row instead so it centers with the title and matches the header's horizontal padding.

Problem
In the agent dashboard popout, the terminal dialog's close X is misaligned: it floats below the header row instead of sitting on the title line.
The default
DialogContentclose button is absolutely positioned attop-4 right-4, which is tuned for the standardp-6dialog. This dialog usesp-0with a compactpy-2header (#9686 switched it from a footer Close button to the corner X), so the default position lands the X below the header's centerline.Fix
Suppress the built-in close button (
showCloseButton={false}) and render theDialogCloseX inside the header row withml-auto, so it vertically centers with the title and shares the header's horizontal padding. Same visual treatment as the default X (size-4 icon, 70% → 100% opacity on hover, sr-only label).Adds the
dashboardPopout.terminal.closelocale key (English text in non-en locales, matching the existing keys in that section).QA (live Electron, CDP)
Verified in the dev app via the popout QA rig (synthetic snapshot → open dialog):