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.
feat: highlight anination adjustment
shuai025977fd4b13
diff --git a/ui/src/index.scss b/ui/src/index.scssindex 32197219..4e8a9135 100644--- a/ui/src/index.scss+++ b/ui/src/index.scss@@ -289,5 +289,5 @@ a {100% { background-color: transparent }}.bg-fade-out {- animation: 2s ease 1s bg-fade-out;+ animation: bg-fade-out 2s ease 0.3s;}diff --git a/ui/src/pages/Questions/Detail/components/Answer/index.tsx b/ui/src/pages/Questions/Detail/components/Answer/index.tsxindex e010e904..83824f12 100644--- a/ui/src/pages/Questions/Detail/components/Answer/index.tsx+++ b/ui/src/pages/Questions/Detail/components/Answer/index.tsx@@ -54,16 +54,18 @@ const Index: FC<Props> = ({if (!answerRef?.current) {return;}++ htmlRender(answerRef.current.querySelector('.fmt'));+if (aid === data.id) {setTimeout(() => {const element = answerRef.current;scrollTop(element);+ if (!searchParams.get('commentId')) {+ bgFadeOut(answerRef.current);+ }}, 100);}- htmlRender(answerRef.current.querySelector('.fmt'));- if (!searchParams.get('commentId')) {- bgFadeOut(answerRef.current);- }}, [data.id, answerRef.current]);if (!data?.id) {return null;