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(UserProfile): Optimising the typography of `ucBranding`

haitaoofd13b3580d63
diff --git a/ui/src/pages/Users/Personal/components/UserInfo/index.tsx b/ui/src/pages/Users/Personal/components/UserInfo/index.tsx
index efc6c7a7..2085e840 100644
--- a/ui/src/pages/Users/Personal/components/UserInfo/index.tsx
+++ b/ui/src/pages/Users/Personal/components/UserInfo/index.tsx
@@ -114,7 +114,7 @@ const Index: FC<Props> = ({ data }) => {
)}
</>
) : null}
- {ucBranding.map((b, i) => {
+ {ucBranding.map((b, i, a) => {
if (!b.label) {
return null;
}
@@ -122,7 +122,7 @@ const Index: FC<Props> = ({ data }) => {
<div
key={b.name}
className={classnames('d-flex', 'align-items-center', {
- 'ms-3': i > 0,
+ 'me-3': i < a.length - 1,
})}>
{b.icon ? (
<span