Skip to content

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: repeat label reminder style adjustment

shuaia6b0827a2f37
diff --git a/ui/src/components/TagSelector/index.scss b/ui/src/components/TagSelector/index.scss
index dc016ba6..e26a12fd 100644
--- a/ui/src/components/TagSelector/index.scss
+++ b/ui/src/components/TagSelector/index.scss
@@ -1,10 +1,4 @@
.tag-selector-wrap {
- .btn {
- &.warning {
- -webkit-animation: tag-input-warning 2s;
- animation: tag-input-warning 2s;
- }
- }
.dropdown-menu {
min-width: 15rem;
}
@@ -18,23 +12,5 @@
color: #212529;
background-color: #e9ecef;
}
- @-webkit-keyframes tag-input-warning {
- 0% {
- background-color: #ffc107;
- }
-
- 100% {
- background-color: #f8f9fa;
- }
- }
-
- @keyframes tag-input-warning {
- 0% {
- background-color: #ffc107;
- }
- 100% {
- background-color: #f8f9fa;
- }
- }
}
diff --git a/ui/src/components/TagSelector/index.tsx b/ui/src/components/TagSelector/index.tsx
index 504134c3..4cb72a83 100644
--- a/ui/src/components/TagSelector/index.tsx
+++ b/ui/src/components/TagSelector/index.tsx
@@ -188,7 +188,7 @@ const TagSelector: FC<IProps> = ({
key={item.slug_name}
className={classNames(
'm-1 text-nowrap d-flex align-items-center',
- index === repeatIndex && 'warning',
+ index === repeatIndex && 'bg-fade-out',
)}
variant={`outline-${
item.reserved ? 'danger' : item.recommend ? 'dark' : 'secondary'
diff --git a/ui/src/pages/Questions/Detail/components/Answer/index.tsx b/ui/src/pages/Questions/Detail/components/Answer/index.tsx
index feff0574..e010e904 100644
--- a/ui/src/pages/Questions/Detail/components/Answer/index.tsx
+++ b/ui/src/pages/Questions/Detail/components/Answer/index.tsx
@@ -61,7 +61,9 @@ const Index: FC<Props> = ({
}, 100);
}
htmlRender(answerRef.current.querySelector('.fmt'));
- bgFadeOut(answerRef.current);
+ if (!searchParams.get('commentId')) {
+ bgFadeOut(answerRef.current);
+ }
}, [data.id, answerRef.current]);
if (!data?.id) {
return null;
diff --git a/ui/src/pages/Questions/Detail/index.tsx b/ui/src/pages/Questions/Detail/index.tsx
index 2247cfbc..2b9a121f 100644
--- a/ui/src/pages/Questions/Detail/index.tsx
+++ b/ui/src/pages/Questions/Detail/index.tsx
@@ -11,7 +11,7 @@ import { useTranslation } from 'react-i18next';
import Pattern from '@/common/pattern';
import { Pagination } from '@/components';
import { loggedUserInfoStore, toastStore } from '@/stores';
-import { scrollTop, bgFadeOut } from '@/utils';
+import { scrollTop } from '@/utils';
import { usePageTags, usePageUsers } from '@/hooks';
import type {
ListResult,
@@ -81,7 +81,6 @@ const Index = () => {
// scroll into view;
const element = document.getElementById('answerHeader');
scrollTop(element);
- bgFadeOut(element);
}
res.list.forEach((item) => {