mirror of https://gitee.com/answerdev/answer.git
fix(Personal): Remove the background color of all Tabs on personal home page
This commit is contained in:
parent
8f38a18512
commit
77274fd66c
|
@ -29,18 +29,18 @@ module.exports = {
|
|||
devServer: function(configFunction) {
|
||||
return function(proxy, allowedHost) {
|
||||
const config = configFunction(proxy, allowedHost);
|
||||
config.proxy = {
|
||||
'/answer': {
|
||||
config.proxy = [
|
||||
{
|
||||
context: ['/answer', '/installation'],
|
||||
target: process.env.REACT_APP_API_URL,
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
},
|
||||
'/installation': {
|
||||
{
|
||||
context: ['/custom.css'],
|
||||
target: process.env.REACT_APP_API_URL,
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
},
|
||||
};
|
||||
}
|
||||
];
|
||||
return config;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -18,7 +18,9 @@ const Index: FC<Props> = ({ visible, data }) => {
|
|||
<ListGroup variant="flush">
|
||||
{data.map((item) => {
|
||||
return (
|
||||
<ListGroupItem className="py-3 px-0" key={item.answer_id}>
|
||||
<ListGroupItem
|
||||
className="py-3 px-0 bg-transparent"
|
||||
key={item.answer_id}>
|
||||
<h6 className="mb-2">
|
||||
<a
|
||||
href={pathFactory.answerLanding({
|
||||
|
|
|
@ -17,7 +17,9 @@ const Index: FC<Props> = ({ visible, data }) => {
|
|||
<ListGroup variant="flush">
|
||||
{data.map((item) => {
|
||||
return (
|
||||
<ListGroupItem className="py-3 px-0" key={item.comment_id}>
|
||||
<ListGroupItem
|
||||
className="py-3 px-0 bg-transparent"
|
||||
key={item.comment_id}>
|
||||
<a
|
||||
className="text-break"
|
||||
href={
|
||||
|
|
|
@ -22,7 +22,7 @@ const Index: FC<Props> = ({ visible, tabName, data }) => {
|
|||
{data.map((item) => {
|
||||
return (
|
||||
<ListGroupItem
|
||||
className="py-3 px-0"
|
||||
className="py-3 px-0 bg-transparent"
|
||||
key={tabName === 'questions' ? item.question_id : item.id}>
|
||||
<h6 className="mb-2">
|
||||
<a
|
||||
|
|
|
@ -19,7 +19,9 @@ const Index: FC<Props> = ({ visible, data }) => {
|
|||
<ListGroup variant="flush">
|
||||
{data.map((item) => {
|
||||
return (
|
||||
<ListGroupItem className="d-flex py-3 px-0" key={item.object_id}>
|
||||
<ListGroupItem
|
||||
className="d-flex py-3 px-0 bg-transparent"
|
||||
key={item.object_id}>
|
||||
<div
|
||||
className={`me-3 text-end ${
|
||||
item.reputation > 0 ? 'text-success' : 'text-danger'
|
||||
|
|
|
@ -18,7 +18,9 @@ const Index: FC<Props> = ({ visible, data }) => {
|
|||
<ListGroup variant="flush">
|
||||
{data.map((item) => {
|
||||
return (
|
||||
<ListGroupItem className="d-flex py-3 px-0" key={item.object_id}>
|
||||
<ListGroupItem
|
||||
className="d-flex py-3 px-0 bg-transparent"
|
||||
key={item.object_id}>
|
||||
<div
|
||||
className="me-3 text-end text-secondary flex-shrink-0"
|
||||
style={{ width: '80px' }}>
|
||||
|
|
Loading…
Reference in New Issue