mirror of
https://github.com/langgenius/dify.git
synced 2026-07-21 10:38:32 +08:00
fix: prevent chat attachments from scrolling out of view (#38846)
This commit is contained in:
parent
eb71e47f3b
commit
514409814d
@ -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 && (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user