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(Personal): An implementation of optimising `TopList` content spacing.
haitaoo90d646613bb4
diff --git a/ui/src/pages/Users/Personal/components/TopList/index.tsx b/ui/src/pages/Users/Personal/components/TopList/index.tsxindex 42210a0f..c33fb51b 100644--- a/ui/src/pages/Users/Personal/components/TopList/index.tsx+++ b/ui/src/pages/Users/Personal/components/TopList/index.tsx@@ -18,6 +18,7 @@ const Index: FC<Props> = ({ data, type }) => {className="mb-2"key={type === 'answer' ? item.answer_id : item.question_id}><a+ className="me-3"href={type === 'answer'? pathFactory.answerLanding({@@ -33,7 +34,7 @@ const Index: FC<Props> = ({ data, type }) => {{type === 'answer' ? item.question_info.title : item.title}</a>- <div className="d-inline-block text-secondary ms-3 small">+ <div className="d-inline-block text-secondary me-3 small"><Icon name="hand-thumbs-up-fill me-1" /><span>{item.vote_count} {t('votes', { keyPrefix: 'counts' })}@@ -41,7 +42,7 @@ const Index: FC<Props> = ({ data, type }) => {</div>{type === 'question' && (<div- className={`d-inline-block text-secondary ms-3 small ${+ className={`d-inline-block text-secondary me-3 small ${Number(item.accepted_answer_id) > 0 ? 'text-success' : ''}`}>{Number(item.accepted_answer_id) > 0 ? (@@ -58,7 +59,7 @@ const Index: FC<Props> = ({ data, type }) => {)}{type === 'answer' && item.accepted === 2 && (- <div className="d-inline-block text-success ms-3 small">+ <div className="d-inline-block text-success me-3 small"><Icon name="check-circle-fill" /><span> {t('accepted')}</span></div>