A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix(Question): add ImgViewer for answer
haitaoo9a07d5092a68
diff --git a/ui/src/pages/Questions/Detail/components/Answer/index.tsx b/ui/src/pages/Questions/Detail/components/Answer/index.tsxindex 89be1784..8aa1d82c 100644--- a/ui/src/pages/Questions/Detail/components/Answer/index.tsx+++ b/ui/src/pages/Questions/Detail/components/Answer/index.tsx@@ -11,6 +11,7 @@ import {Comment,FormatTime,htmlRender,+ ImgViewer,} from '@/components';import { scrollToElementTop, bgFadeOut } from '@/utils';import { AnswerItem } from '@/common/interface';@@ -84,10 +85,12 @@ const Index: FC<Props> = ({</Badge></div>)}- <article- className="fmt text-break text-wrap"- dangerouslySetInnerHTML={{ __html: data?.html }}- />+ <ImgViewer>+ <article+ className="fmt text-break text-wrap"+ dangerouslySetInnerHTML={{ __html: data?.html }}+ />+ </ImgViewer><div className="d-flex align-items-center mt-4"><Actionssource="answer"