mirror of https://gitee.com/answerdev/answer.git
Merge branch 'feat/ui-0.5.0' into 'test'
fix(users): adjust layout for user overview page See merge request opensource/answer!285
This commit is contained in:
commit
be5c86f4e0
|
@ -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}>
|
||||
<a
|
||||
href={`/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>
|
||||
|
|
Loading…
Reference in New Issue