From 0704fe9695e1a74ce6fe7a7ba5719cd6f4d3cae0 Mon Sep 17 00:00:00 2001 From: Rhon Joe Date: Tue, 30 Apr 2024 14:55:57 +0800 Subject: [PATCH] fix(web): copy button visible at chat page normally (#4005) Co-authored-by: rongjun.qiu --- web/app/components/app/chat/answer/index.tsx | 2 +- web/app/components/base/markdown.tsx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/web/app/components/app/chat/answer/index.tsx b/web/app/components/app/chat/answer/index.tsx index f96c91d57b..49dd817255 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 = ({ {!item.isOpeningStatement && ( )} {((isShowPromptLog && !isResponding) || (!item.isOpeningStatement && isShowTextToSpeech)) && ( diff --git a/web/app/components/base/markdown.tsx b/web/app/components/base/markdown.tsx index be1a45476a..054ae04f6f 100644 --- a/web/app/components/base/markdown.tsx +++ b/web/app/components/base/markdown.tsx @@ -12,7 +12,6 @@ import cn from 'classnames' import CopyBtn from '@/app/components/app/chat/copy-btn' import SVGBtn from '@/app/components/app/chat/svg' import Flowchart from '@/app/components/app/chat/mermaid' -import s from '@/app/components/app/chat/style.module.css' // Available language https://github.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/AVAILABLE_LANGUAGES_HLJS.MD const capitalizationLanguageNameMap: Record = { @@ -113,7 +112,7 @@ export function Markdown(props: { content: string; className?: string }) { /> }