Skip to content

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(Profile): Adjust the border color of the list-group-item to default

haitao(lj)e61805cbe8dd
diff --git a/ui/src/pages/Users/Personal/components/Answers/index.tsx b/ui/src/pages/Users/Personal/components/Answers/index.tsx
index 7ddd1820..0a5b2d92 100644
--- a/ui/src/pages/Users/Personal/components/Answers/index.tsx
+++ b/ui/src/pages/Users/Personal/components/Answers/index.tsx
@@ -15,11 +15,11 @@ const Index: FC<Props> = ({ visible, data }) => {
return null;
}
return (
- <ListGroup variant="flush">
+ <ListGroup className="rounded-0">
{data.map((item) => {
return (
<ListGroupItem
- className="py-3 px-0 bg-transparent"
+ className="py-3 px-0 bg-transparent border-start-0 border-end-0"
key={item.answer_id}>
<h6 className="mb-2">
<a
diff --git a/ui/src/pages/Users/Personal/components/Comments/index.tsx b/ui/src/pages/Users/Personal/components/Comments/index.tsx
index cefdbf94..2d038b1b 100644
--- a/ui/src/pages/Users/Personal/components/Comments/index.tsx
+++ b/ui/src/pages/Users/Personal/components/Comments/index.tsx
@@ -14,11 +14,11 @@ const Index: FC<Props> = ({ visible, data }) => {
return null;
}
return (
- <ListGroup variant="flush">
+ <ListGroup className="rounded-0">
{data.map((item) => {
return (
<ListGroupItem
- className="py-3 px-0 bg-transparent"
+ className="py-3 px-0 bg-transparent border-start-0 border-end-0"
key={item.comment_id}>
<a
className="text-break"
diff --git a/ui/src/pages/Users/Personal/components/DefaultList/index.tsx b/ui/src/pages/Users/Personal/components/DefaultList/index.tsx
index db585f18..5084f7ee 100644
--- a/ui/src/pages/Users/Personal/components/DefaultList/index.tsx
+++ b/ui/src/pages/Users/Personal/components/DefaultList/index.tsx
@@ -18,11 +18,11 @@ const Index: FC<Props> = ({ visible, tabName, data }) => {
}
return (
- <ListGroup variant="flush">
+ <ListGroup className="rounded-0">
{data.map((item) => {
return (
<ListGroupItem
- className="py-3 px-0 bg-transparent"
+ className="py-3 px-0 bg-transparent border-start-0 border-end-0"
key={tabName === 'questions' ? item.question_id : item.id}>
<h6 className="mb-2">
<a
diff --git a/ui/src/pages/Users/Personal/components/ListHead/index.tsx b/ui/src/pages/Users/Personal/components/ListHead/index.tsx
index de550754..a53cbeb0 100644
--- a/ui/src/pages/Users/Personal/components/ListHead/index.tsx
+++ b/ui/src/pages/Users/Personal/components/ListHead/index.tsx
@@ -24,7 +24,7 @@ const Index: FC<Props> = ({
}
return (
- <div className="d-flex align-items-center justify-content-between pb-3 border-bottom">
+ <div className="d-flex align-items-center justify-content-between pb-3">
<h5 className="mb-0">
{count} {t(tabName)}
</h5>
diff --git a/ui/src/pages/Users/Personal/components/Reputation/index.tsx b/ui/src/pages/Users/Personal/components/Reputation/index.tsx
index b4e82f32..01eec63e 100644
--- a/ui/src/pages/Users/Personal/components/Reputation/index.tsx
+++ b/ui/src/pages/Users/Personal/components/Reputation/index.tsx
@@ -16,11 +16,11 @@ const Index: FC<Props> = ({ visible, data }) => {
return null;
}
return (
- <ListGroup variant="flush">
+ <ListGroup className="rounded-0">
{data.map((item) => {
return (
<ListGroupItem
- className="d-flex py-3 px-0 bg-transparent"
+ className="d-flex py-3 px-0 bg-transparent border-start-0 border-end-0"
key={item.object_id}>
<div
className={`me-3 text-end ${
diff --git a/ui/src/pages/Users/Personal/components/Votes/index.tsx b/ui/src/pages/Users/Personal/components/Votes/index.tsx
index 65d09b01..8ec58971 100644
--- a/ui/src/pages/Users/Personal/components/Votes/index.tsx
+++ b/ui/src/pages/Users/Personal/components/Votes/index.tsx
@@ -15,11 +15,11 @@ const Index: FC<Props> = ({ visible, data }) => {
}
return (
- <ListGroup variant="flush">
+ <ListGroup className="rounded-0">
{data.map((item) => {
return (
<ListGroupItem
- className="d-flex py-3 px-0 bg-transparent"
+ className="d-flex py-3 px-0 bg-transparent border-start-0 border-end-0"
key={item.object_id}>
<div
className="me-3 text-end text-secondary flex-shrink-0"
diff --git a/ui/src/pages/Users/Personal/index.tsx b/ui/src/pages/Users/Personal/index.tsx
index d14a3e38..1507af6b 100644
--- a/ui/src/pages/Users/Personal/index.tsx
+++ b/ui/src/pages/Users/Personal/index.tsx
@@ -109,7 +109,7 @@ const Personal: FC = () => {
{!list?.length && !isLoading && <Empty />}
{count > 0 && (
- <div className="d-flex justify-content-center border-top py-4">
+ <div className="d-flex justify-content-center py-4">
<Pagination
pageSize={30}
totalSize={count || 0}