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(questionList): remove bg on list-group-item
haitao(lj)baf302458e39
diff --git a/ui/src/components/QuestionList/index.tsx b/ui/src/components/QuestionList/index.tsxindex 6a6305d3..6b7088cf 100644--- a/ui/src/components/QuestionList/index.tsx+++ b/ui/src/components/QuestionList/index.tsx@@ -120,7 +120,9 @@ const QuestionList: FC<Props> = ({ source }) => {<ListGroup variant="flush" className="border-top border-bottom-0">{listData?.list?.map((li) => {return (- <ListGroup.Item key={li.id} className="border-bottom py-3 px-0">+ <ListGroup.Item+ key={li.id}+ className="border-bottom bg-transparent py-3 px-0"><h5 className="text-wrap text-break"><NavLinkto={pathFactory.questionLanding(li.id, li.url_title)}diff --git a/ui/src/pages/Users/Personal/components/TopList/index.tsx b/ui/src/pages/Users/Personal/components/TopList/index.tsxindex 23dd6470..92a66ddf 100644--- a/ui/src/pages/Users/Personal/components/TopList/index.tsx+++ b/ui/src/pages/Users/Personal/components/TopList/index.tsx@@ -1,5 +1,4 @@import { FC, memo } from 'react';-import { ListGroup, ListGroupItem } from 'react-bootstrap';import { useTranslation } from 'react-i18next';import { pathFactory } from '@/router/pathFactory';@@ -12,11 +11,11 @@ interface Props {const Index: FC<Props> = ({ data, type }) => {const { t } = useTranslation('translation', { keyPrefix: 'personal' });return (- <ListGroup variant="flush" className="mb-4">+ <ol className="mb-4 list-unstyled">{data?.map((item) => {return (- <ListGroupItem- className="p-0 border-0 mb-2"+ <li+ className="mb-2"key={type === 'answer' ? item.answer_id : item.question_id}><ahref={@@ -58,10 +57,10 @@ const Index: FC<Props> = ({ data, type }) => {<span> {t('accepted')}</span></div>)}- </ListGroupItem>+ </li>);})}- </ListGroup>+ </ol>);};