Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

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

Joel514409814dec
diff --git a/web/app/components/base/chat/chat/chat-input-area/index.tsx b/web/app/components/base/chat/chat/chat-input-area/index.tsx
index 23ba8f89501..be122a43f89 100644
--- a/web/app/components/base/chat/chat/chat-input-area/index.tsx
+++ b/web/app/components/base/chat/chat/chat-input-area/index.tsx
@@ -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 && (