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(users): adjust layout for user overview page
haitao(lj)9af3067e8fd2
diff --git a/ui/src/pages/Users/Personal/components/TopList/index.tsx b/ui/src/pages/Users/Personal/components/TopList/index.tsxindex 86179305..4af1da3c 100644--- a/ui/src/pages/Users/Personal/components/TopList/index.tsx+++ b/ui/src/pages/Users/Personal/components/TopList/index.tsx@@ -16,7 +16,7 @@ const Index: FC<Props> = ({ data, type }) => {{data?.map((item) => {return (<ListGroupItem- className="p-0 border-0 mb-2 d-flex flex-wrap align-items-center"+ className="p-0 border-0 mb-2"key={type === 'answer' ? item.answer_id : item.question_id}><ahref={`/questions/${@@ -26,13 +26,13 @@ const Index: FC<Props> = ({ data, type }) => {}`}>{type === 'answer' ? item.question_info.title : item.title}</a>- <div className="text-secondary ms-3 fs-14">+ <div className="d-inline-block text-secondary ms-3 fs-14"><Icon name="hand-thumbs-up-fill" /><span> {item.vote_count}</span></div>{type === 'question' && (<div- className={`text-secondary ms-3 fs-14 ${+ className={`d-inline-block text-secondary ms-3 fs-14 ${Number(item.accepted_answer_id) > 0 ? 'text-success' : ''}`}>{Number(item.accepted_answer_id) > 0 ? (@@ -46,7 +46,7 @@ const Index: FC<Props> = ({ data, type }) => {)}{type === 'answer' && item.adopted === 2 && (- <div className="text-success ms-3 fs-14">+ <div className="d-inline-block text-success ms-3 fs-14"><Icon name="check-circle-fill" /><span> {t('accepted')}</span></div>