Skip to content

Commit e4dd871

Browse files
Improve prompt input styling with visible focus state and consistent button heights
1 parent 517747c commit e4dd871

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/src/components/message/PromptInput.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,9 +507,9 @@ export function PromptInput({
507507
: "Send a message..."
508508
}
509509
disabled={disabled}
510-
className={`w-full bg-background/90 px-2 md:px-3 py-2 text-[16px] text-foreground placeholder-muted-foreground focus:outline-none focus:bg-background resize-none min-h-[40px] max-h-[120px] disabled:opacity-50 disabled:cursor-not-allowed md:text-sm rounded-lg ${
510+
className={`w-full bg-muted/50 px-2 md:px-3 py-2 text-[16px] text-foreground placeholder-muted-foreground focus:outline-none focus:bg-muted/70 resize-none min-h-[40px] max-h-[120px] disabled:opacity-50 disabled:cursor-not-allowed md:text-sm rounded-lg ${
511511
isBashMode
512-
? 'border-purple-500/50 bg-purple-500/5 focus:bg-background'
512+
? 'border-purple-500/50 bg-purple-500/5 focus:bg-purple-500/10'
513513
: ''
514514
}`}
515515
rows={1}
@@ -584,7 +584,7 @@ export function PromptInput({
584584
data-submit-prompt
585585
onClick={handleSubmit}
586586
disabled={!prompt.trim() || disabled}
587-
className="px-5 md:px-6 py-1.5 rounded-lg text-sm font-medium transition-colors bg-primary hover:bg-primary/90 disabled:bg-muted disabled:text-muted-foreground disabled:cursor-not-allowed text-primary-foreground"
587+
className="px-5 md:px-6 py-1.5 md:py-2 rounded-lg text-sm font-medium transition-colors bg-primary hover:bg-primary/90 disabled:bg-muted disabled:text-muted-foreground disabled:cursor-not-allowed text-primary-foreground"
588588
title={hasActiveStream ? 'Queue message' : 'Send'}
589589
>
590590
{hasActiveStream ? 'Queue' : 'Send'}

0 commit comments

Comments
 (0)