AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
feat(frontend/copilot): move microphone button to right side of input box (#12320)
Ottoeadc68f2a54e
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/ChatInput.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/ChatInput.tsxindex bd9d1266ed..0d48f3980b 100644--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/ChatInput.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/ChatInput.tsx@@ -151,6 +151,9 @@ export function ChatInput({onFilesSelected={handleFilesSelected}disabled={isBusy}/>+ </PromptInputTools>++ <div className="flex items-center gap-4">{showMicButton && (<RecordingButtonisRecording={isRecording}@@ -160,13 +163,12 @@ export function ChatInput({onClick={toggleRecording}/>)}- </PromptInputTools>-- {isStreaming ? (- <PromptInputSubmit status="streaming" onStop={onStop} />- ) : (- <PromptInputSubmit disabled={!canSend} />- )}+ {isStreaming ? (+ <PromptInputSubmit status="streaming" onStop={onStop} />+ ) : (+ <PromptInputSubmit disabled={!canSend} />+ )}+ </div></PromptInputFooter></InputGroup></form>diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/RecordingButton.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/RecordingButton.tsxindex e6c0dfd4ad..f319f7680e 100644--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/RecordingButton.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/components/RecordingButton.tsx@@ -28,10 +28,9 @@ export function RecordingButton({disabled={disabled}onClick={onClick}className={cn(- "border-zinc-300 bg-white text-zinc-500 hover:border-zinc-400 hover:bg-zinc-50 hover:text-zinc-700",+ "border-0 bg-white text-zinc-500 hover:bg-zinc-50 hover:text-zinc-700",disabled && "opacity-40",- isRecording &&- "animate-pulse border-red-500 bg-red-500 text-white hover:border-red-600 hover:bg-red-600",+ isRecording && "animate-pulse bg-red-500 text-white hover:bg-red-600",isTranscribing && "bg-zinc-100 text-zinc-400",isStreaming && "opacity-40",)}