Skip to content

Commit f2358f8

Browse files
patnikoCopilot
andcommitted
fix: match send button padding to textarea (py-3)
Revert to items-center layout. Give send/stop buttons py-3 to match the textarea's vertical padding exactly, plus shrink-0 to prevent squishing. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 94002c5 commit f2358f8

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎src/renderer/components/PromptBar.tsx‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,11 @@ export default function PromptBar({ panelId, onSend, onGeneratingChange, cwd, on
320320
)}
321321
</AnimatePresence>
322322

323-
<div className="flex items-stretch gap-3">
323+
<div className="flex items-center gap-3">
324324
{/* Attach button */}
325325
<button
326326
onClick={() => fileInputRef.current?.click()}
327-
className="px-2 flex items-center text-[var(--text-secondary)] hover:text-[var(--accent-purple)] transition-colors cursor-pointer text-lg"
327+
className="px-2 py-2.5 text-[var(--text-secondary)] hover:text-[var(--accent-purple)] transition-colors cursor-pointer text-lg shrink-0"
328328
title="Attach image"
329329
>
330330
📎
@@ -428,7 +428,7 @@ export default function PromptBar({ panelId, onSend, onGeneratingChange, cwd, on
428428
exit={{ opacity: 0, scale: 0.8 }}
429429
transition={{ duration: 0.15 }}
430430
onClick={handleAbort}
431-
className="px-4 bg-red-600 text-white font-bold rounded-lg text-sm whitespace-nowrap cursor-pointer flex items-center"
431+
className="px-4 py-3 bg-red-600 text-white font-bold rounded-lg text-sm whitespace-nowrap cursor-pointer flex items-center shrink-0"
432432
>
433433
⏹ STOP
434434
</motion.button>
@@ -439,18 +439,18 @@ export default function PromptBar({ panelId, onSend, onGeneratingChange, cwd, on
439439
animate={{ opacity: 1, scale: 1 }}
440440
exit={{ opacity: 0, scale: 0.8 }}
441441
transition={{ duration: 0.15 }}
442-
className="relative flex items-stretch"
442+
className="relative flex items-center shrink-0"
443443
>
444444
<button
445445
onClick={handleSend}
446-
className="px-3 bg-[var(--accent-gold)] text-black font-bold rounded-l-lg cursor-pointer flex items-center justify-center"
446+
className="px-3 py-3 bg-[var(--accent-gold)] text-black font-bold rounded-l-lg cursor-pointer flex items-center justify-center"
447447
>
448448
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round"><line x1="22" y1="2" x2="11" y2="13"/><polygon points="22 2 15 22 11 13 2 9 22 2"/></svg>
449449
</button>
450-
<div className="w-px bg-black/20" />
450+
<div className="w-px bg-black/20 self-stretch" />
451451
<button
452452
onClick={() => setSendMenuOpen(!sendMenuOpen)}
453-
className="px-1.5 bg-[var(--accent-gold)] text-black font-bold rounded-r-lg cursor-pointer flex items-center justify-center hover:bg-[var(--accent-gold)]/80 transition-colors"
453+
className="px-1.5 py-3 bg-[var(--accent-gold)] text-black font-bold rounded-r-lg cursor-pointer flex items-center justify-center hover:bg-[var(--accent-gold)]/80 transition-colors"
454454
>
455455
<svg width="10" height="10" viewBox="0 0 8 8" fill="currentColor" className={`transition-transform ${sendMenuOpen ? 'rotate-180' : ''}`}><path d="M0 2l4 4 4-4z"/></svg>
456456
</button>

0 commit comments

Comments
 (0)