Merge branch 'test' of github.com:answerdev/answer into test

This commit is contained in:
aichy 2023-07-24 11:14:22 +08:00
commit 1be2b5134d
2 changed files with 6 additions and 5 deletions

View File

@ -134,7 +134,7 @@ const Index: FC<Props> = ({
path={handleParams(1)}
/>
<Pagination.Ellipsis disabled />
<Pagination.Ellipsis className="pe-none" />
</>
)}
{currentPage >= 5 && (
@ -182,7 +182,7 @@ const Index: FC<Props> = ({
);
})}
{totalPage > 5 && realPage + 2 < totalPage && (
<Pagination.Ellipsis disabled />
<Pagination.Ellipsis className="pe-none" />
)}
{totalPage > 0 && currentPage < totalPage && (

View File

@ -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>