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.

fix: #972

haitao(lj)849c9f566750
diff --git a/ui/src/components/TagSelector/index.tsx b/ui/src/components/TagSelector/index.tsx
index 999ddb58..06ffdb6e 100644
--- a/ui/src/components/TagSelector/index.tsx
+++ b/ui/src/components/TagSelector/index.tsx
@@ -198,7 +198,10 @@ const TagSelector: FC<IProps> = ({
})}
{initialValue?.length < 5 || alwaysShowAddBtn ? (
<Dropdown onSelect={handleSelect} onToggle={setVisibleMenu}>
- <Dropdown.Toggle variant="outline-secondary" size="sm">
+ <Dropdown.Toggle
+ className={classNames(alwaysShowAddBtn ? 'mb-2' : null)}
+ variant="outline-secondary"
+ size="sm">
<span className="me-1">+</span>
{t('add_btn')}
</Dropdown.Toggle>