fix: prevent chat attachments from scrolling out of view (#38846)

This commit is contained in:
Joel 2026-07-13 14:42:15 +08:00 committed by GitHub
parent eb71e47f3b
commit 514409814d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -309,8 +309,10 @@ const ChatInputArea = ({
disabled && 'pointer-events-none border-components-panel-border opacity-50 shadow-none',
)}
>
<div className="relative max-h-[158px] overflow-x-hidden overflow-y-auto px-[9px] pt-[9px]">
<div className="px-[9px] pt-[9px]">
<FileListInChatInput fileConfig={visionConfig!} />
</div>
<div className="relative max-h-[158px] overflow-x-hidden overflow-y-auto px-[9px]">
<div ref={wrapperRef} className="flex items-center justify-between">
<div className="relative flex w-full grow items-center">
<div
@ -356,7 +358,9 @@ const ChatInputArea = ({
</div>
{!isMultipleLine && operation}
</div>
{showVoiceInput && speechToTextTarget && (
</div>
{showVoiceInput && speechToTextTarget && (
<div className="px-[9px]">
<VoiceInput
ref={voiceInputRef}
target={speechToTextTarget}
@ -366,8 +370,8 @@ const ChatInputArea = ({
onError={handleVoiceInputError}
onStartError={handleVoiceInputStartError}
/>
)}
</div>
</div>
)}
{isMultipleLine && <div className="px-[9px]">{operation}</div>}
</div>
{shouldShowFooterNotice && (