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: copy button is always displayed on the chat logs page (#4488)

Vikey Chen98085209927e
diff --git a/web/app/components/app/chat/answer/index.tsx b/web/app/components/app/chat/answer/index.tsx
index 49dd817255b..f96c91d57b3 100644
--- a/web/app/components/app/chat/answer/index.tsx
+++ b/web/app/components/app/chat/answer/index.tsx
@@ -362,7 +362,7 @@ const Answer: FC<IAnswerProps> = ({
{!item.isOpeningStatement && (
<CopyBtn
value={content}
- className='mr-1'
+ className={cn(s.copyBtn, 'mr-1')}
/>
)}
{((isShowPromptLog && !isResponding) || (!item.isOpeningStatement && isShowTextToSpeech)) && (