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.

refactor(ui): modify margin

robin8e757eadb006
diff --git a/ui/src/components/FollowingTags/index.tsx b/ui/src/components/FollowingTags/index.tsx
index 524d3125..adf189db 100644
--- a/ui/src/components/FollowingTags/index.tsx
+++ b/ui/src/components/FollowingTags/index.tsx
@@ -46,7 +46,7 @@ const Index: FC = () => {
{t('save')}
</Button>
</Card.Header>
- <Card.Body className="my-n1">
+ <Card.Body>
<TagSelector
value={followingTags}
onChange={handleTagsChange}
@@ -67,14 +67,14 @@ const Index: FC = () => {
{t('edit')}
</Button>
</Card.Header>
- <Card.Body className="m-n1">
+ <Card.Body>
{followingTags?.length ? (
- <>
+ <div className="m-n1">
{followingTags.map((item) => {
const slugName = item?.slug_name;
return <Tag key={slugName} className="m-1" data={item} />;
})}
- </>
+ </div>
) : (
<>
<div className="text-muted">{t('follow_tag_tip')}</div>
diff --git a/ui/src/components/TagSelector/index.tsx b/ui/src/components/TagSelector/index.tsx
index c1646fa3..c54329b4 100644
--- a/ui/src/components/TagSelector/index.tsx
+++ b/ui/src/components/TagSelector/index.tsx
@@ -181,7 +181,7 @@ const TagSelector: FC<IProps> = ({
onFocus={onFocus}
onBlur={onBlur}
onKeyDown={handleKeyDown}>
- <div className="d-flex flex-wrap mx-n1">
+ <div className="d-flex flex-wrap m-n1">
{initialValue?.map((item, index) => {
return (
<Button