The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 08:30 UTC
fix(web): dictating a citation comment keeps Save beside Cancel (#38172)
Julius Marminge committed
Nov 17, 2026 at 07:05 UTC
dd40cb51ea81fef5247beb55a796fba46d6187d7
1 file changed
+21
-18
apps/web/src/components/chat/AssistantCitationCommentEditor.tsx
+21
-18
@@ -114,24 +114,27 @@ export function AssistantCitationCommentEditor({
114
) : null}
115
<div className="mt-2 flex flex-wrap items-center justify-end gap-2">
116
<TextFieldSpeechControls speech={speech} />
117
- <Button
118
- variant="outline"
119
- size="xs"
120
- // Escape cancels; keep Tab from the comment on Save so Enter cannot discard a new citation.
121
- tabIndex={-1}
122
- onPointerDown={(event) => event.preventDefault()}
123
- onClick={onCancel}
124
- >
125
- Cancel
126
- </Button>
127
- <Button
128
- size="xs"
129
- disabled={speech.preparing || (commentTooLong && !speech.blocksSubmission)}
130
- onPointerDown={(event) => event.preventDefault()}
131
- onClick={submit}
132
- >
133
- {commentTooLong ? "Shorten comment" : "Save"}
134
- </Button>
117
+ {/* Wrap as a pair so the recording pill never pushes Save alone onto a new row under Cancel. */}
118
+ <div className="flex gap-2">
119
+ <Button
120
+ variant="outline"
121
+ size="xs"
122
+ // Escape cancels; keep Tab from the comment on Save so Enter cannot discard a new citation.
123
+ tabIndex={-1}
124
+ onPointerDown={(event) => event.preventDefault()}
125
+ onClick={onCancel}
126
+ >
127
+ Cancel
128
+ </Button>
129
+ <Button
130
+ size="xs"
131
+ disabled={speech.preparing || (commentTooLong && !speech.blocksSubmission)}
132
+ onPointerDown={(event) => event.preventDefault()}
133
+ onClick={submit}
134
+ >
135
+ {commentTooLong ? "Shorten comment" : "Save"}
136
+ </Button>
137
+ </div>
138
</div>
139
</div>
140
);