Skip to content

Commit f82b49f

Browse files
committed
fix: remove ugly focus ring, improve voice tooltip
- Add focus:outline-none to recording overlay button - Update tooltip to document all shortcuts: - Space on empty input to start - Cmd+D anytime to toggle - Space during recording to send - Escape to cancel
1 parent 944e341 commit f82b49f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/browser/components/ChatInput/VoiceInputButton.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,12 @@ export const VoiceInputButton: React.FC<VoiceInputButtonProps> = (props) => {
6060
</>
6161
) : (
6262
<>
63-
{label} ({formatKeybind(KEYBINDS.TOGGLE_VOICE_INPUT)})
63+
<strong>Voice input</strong> — press space on empty input
64+
<br />
65+
or {formatKeybind(KEYBINDS.TOGGLE_VOICE_INPUT)} anytime
66+
<br />
67+
<br />
68+
While recording: space sends, esc cancels
6469
</>
6570
)}
6671
</Tooltip>

src/browser/components/ChatInput/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ export const ChatInput: React.FC<ChatInputProps> = (props) => {
10051005
}}
10061006
disabled={voiceInput.state === "transcribing"}
10071007
className={cn(
1008-
"mb-1 flex min-h-[60px] w-full items-center justify-center gap-3 rounded-md border px-4 py-4 transition-all",
1008+
"mb-1 flex min-h-[60px] w-full items-center justify-center gap-3 rounded-md border px-4 py-4 transition-all focus:outline-none",
10091009
voiceInput.state === "recording"
10101010
? "cursor-pointer border-blue-500 bg-blue-500/10"
10111011
: "cursor-wait border-amber-500 bg-amber-500/10"

0 commit comments

Comments
 (0)