🤖 refactor: move ChatInput attach/voice icons out of textarea overlay#3222
Merged
🤖 refactor: move ChatInput attach/voice icons out of textarea overlay#3222
Conversation
Relocates the attach and voice input buttons from the absolute overlay inside the textarea to the existing controls row below, so they can never visually intersect typed text (including wrapped lines that previously slid under the icons despite the reserved pr-16 gutter).
Collaborator
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Collaborator
Author
|
@codex review |
ammario
approved these changes
May 2, 2026
|
Codex Review: Didn't find any major issues. Nice work! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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.
Summary
Move the attach (📎) and voice (🎙️) input buttons from the absolute overlay inside the chat textarea into the controls row directly to the left of the Send button, so they can never visually intersect typed text and read as a single trailing action cluster.
Background
The previous design positioned both buttons absolutely at the bottom-right corner of the textarea and reserved a fixed
pr-16(4rem) right padding to keep text out of their way. This had two problems:Implementation
VimTextArea: removed thetrailingActionprop and its associated machinery (pr-16conditional padding,scrollbarGutter: "stable", the absolute overlay div). The component had a single consumer, so removing the surface area is a net cleanup.ChatInput: relocated<AttachFileButton>and<VoiceInputButton>into a newInputMethodGroupthat sits in the right half of the existing controls row, between the agent mode picker (Exec ▾) and the Send button. Internalgap-0and a-ml-1.5on the Send container override the parent'sgap-1.5cadence so the trailing actions form one tight cluster[Exec ▾] 📎 🎙 ➤rather than three small icons stranded in a wide-spaced row.right-18→right-2) since the textarea no longer has icons floating over its bottom-right corner.Validation
App/Chat/Input → VoiceInputNoApiKey); the bottom line of wrapped text never intersects either icon.make static-checkpasses locally.Risks
Low. The change is purely visual layout: button props, callbacks, and disabled states are unchanged, and no logic in
ChatInputwas altered. ThetrailingActionprop onVimTextAreahad a single caller, so removing it is safe.Generated with
mux• Model:anthropic:claude-opus-4-7• Thinking:high• Cost:$1.53