fix: preserve chat input button overflow during draft toggle

Keeps the button visible state aligned with the draft panel animation
Moves overflow handling to the collapsed state only
This commit is contained in:
Bohdan Triapitsyn
2026-07-18 09:31:15 +03:00
parent 66f3969273
commit 9c226a5bd4
@@ -5029,8 +5029,8 @@ const ChatInputComponent: React.FC<ChatInputProps> = ({ onOpenSettings, scrollTo
already open, letting the pill expand into its place. */}
<div
className={cn(
'flex-shrink-0 overflow-hidden transition-all duration-200 ease-out',
newSessionDraftOpen ? 'w-0 opacity-0' : 'w-11 opacity-100',
'flex-shrink-0 transition-all duration-200 ease-out',
newSessionDraftOpen ? 'w-0 opacity-0 overflow-hidden' : 'w-11 opacity-100',
)}
>
<button