Skip to content

fix(site): fix exec tool layout shift on command expand#23739

Merged
DanielleMaywood merged 1 commit intomainfrom
dm/fix-exec-tool-layout-shift
Mar 28, 2026
Merged

fix(site): fix exec tool layout shift on command expand#23739
DanielleMaywood merged 1 commit intomainfrom
dm/fix-exec-tool-layout-shift

Conversation

@DanielleMaywood
Copy link
Copy Markdown
Contributor

🤖 This PR was written by Coder Agent on behalf of Danielle Maywood 🤖

The exec tool command header toggled between items-center and items-start when expanding, causing the text to jump vertically. The CopyButton (size-8, 32px) also stretched the header row beyond the text line-height.

Use items-start unconditionally so nothing shifts on expand. Shrink the CopyButton to size-6 with negative margin to match the text line-height. Align padding (px-3, py-2) with other bordered tool components. Add hover:bg-surface-tertiary to the CopyButton for consistency with the edit button hover style on user messages.

Same negative-margin fix applied to the user message edit button.

- Remove conditional items-center/items-start toggle on the exec tool
  header that caused the command text to jump vertically when expanding.
  Use items-start unconditionally so nothing shifts.
- Align horizontal padding from px-2.5 to px-3 across ExecuteTool and
  ProcessOutputTool to match other bordered tool components.
- Add py-2 vertical padding on the exec tool header for consistency
  with other bordered tools.
- Shrink the CopyButton in the exec header from size-8 to size-6 with
  negative margin so it no longer stretches the row height beyond the
  text line.
- Add hover:bg-surface-tertiary to the CopyButton to match the edit
  button hover style on user messages.
- Fix user message edit button using negative margin instead of positive
  top margin to prevent it from stretching the message row.
@github-actions github-actions bot added the community Pull Requests and issues created by the community. label Mar 28, 2026
@DanielleMaywood DanielleMaywood removed the community Pull Requests and issues created by the community. label Mar 28, 2026
@DanielleMaywood DanielleMaywood marked this pull request as ready for review March 28, 2026 00:27
@DanielleMaywood DanielleMaywood merged commit 565cf84 into main Mar 28, 2026
38 checks passed
@DanielleMaywood DanielleMaywood deleted the dm/fix-exec-tool-layout-shift branch March 28, 2026 16:27
@github-actions github-actions bot locked and limited conversation to collaborators Mar 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants