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: tagSelector show all recommended tags
shuai83a8e9eb0926
diff --git a/ui/src/components/TagSelector/index.scss b/ui/src/components/TagSelector/index.scssindex 5d26102e..7cbeb5a8 100644--- a/ui/src/components/TagSelector/index.scss+++ b/ui/src/components/TagSelector/index.scss@@ -20,6 +20,8 @@.tag-selector-wrap {.dropdown-menu {min-width: 15rem;+ max-height: 178px;+ overflow-y: auto;}.dropdown-toggle {&::after {diff --git a/ui/src/components/TagSelector/index.tsx b/ui/src/components/TagSelector/index.tsxindex 1204a686..2e539a05 100644--- a/ui/src/components/TagSelector/index.tsx+++ b/ui/src/components/TagSelector/index.tsx@@ -154,10 +154,10 @@ const TagSelector: FC<IProps> = ({queryTags(str).then((res) => {const tagArray: Type.Tag[] = filterTags(res || []);if (str === '') {- setRequiredTags(res?.length > 5 ? res.slice(0, 5) : res);+ setRequiredTags(res);}handleMenuShow(tagArray.length > 0);- setTags(tagArray?.length > 5 ? tagArray.slice(0, 5) : tagArray);+ setTags(tagArray);});};