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: hove x scroll shake (#449)

Joeladdf150a9e3d
diff --git a/web/app/components/app/chat/index.tsx b/web/app/components/app/chat/index.tsx
index 18cd5e9a282..cb103f52991 100644
--- a/web/app/components/app/chat/index.tsx
+++ b/web/app/components/app/chat/index.tsx
@@ -352,10 +352,12 @@ const Answer: FC<IAnswerProps> = ({ item, feedbackDisabled = false, isHideFeedba
}
</div>
<div className='absolute top-[-14px] right-[-14px] flex flex-row justify-end gap-1'>
- <CopyBtn
- value={content}
- className={cn(s.copyBtn, 'mr-1')}
- />
+ {!item.isOpeningStatement && (
+ <CopyBtn
+ value={content}
+ className={cn(s.copyBtn, 'mr-1')}
+ />
+ )}
{!feedbackDisabled && !item.feedbackDisabled && renderItemOperation(displayScene !== 'console')}
{/* Admin feedback is displayed only in the background. */}
{!feedbackDisabled && renderFeedbackRating(localAdminFeedback?.rating, false, false)}
@@ -487,7 +489,7 @@ const Chat: FC<IChatProps> = ({
}, [suggestionList])
return (
- <div className={cn(!feedbackDisabled && 'px-3.5', 'h-full')}>
+ <div className={cn('px-3.5', 'h-full')}>
{/* Chat List */}
<div className="h-full space-y-[30px]">
{chatList.map((item) => {
diff --git a/web/app/components/app/configuration/debug/index.tsx b/web/app/components/app/configuration/debug/index.tsx
index 9a2bdca3c33..5ecae6ed4e2 100644
--- a/web/app/components/app/configuration/debug/index.tsx
+++ b/web/app/components/app/configuration/debug/index.tsx
@@ -370,8 +370,7 @@ const Debug: FC<IDebug> = ({
{mode === AppType.chat && (
<div className="mt-[34px] h-full flex flex-col">
<div className={cn(doShowSuggestion ? 'pb-[140px]' : (isResponsing ? 'pb-[113px]' : 'pb-[66px]'), 'relative mt-1.5 grow h-[200px] overflow-hidden')}>
- <div className="h-full overflow-y-auto" ref={chatListDomRef}>
- {/* {JSON.stringify(chatList)} */}
+ <div className="h-full overflow-y-auto overflow-x-hidden" ref={chatListDomRef}>
<Chat
chatList={chatList}
onSend={onSend}