Skip to content

Commit 5ceba4a

Browse files
author
guosw
committed
style: about page
1 parent ff1691f commit 5ceba4a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/views/web/about/index.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ import { SIDEBAR, ABOUT } from '@/config'
77
import axios from '@/utils/axios'
88
import Discuss from '@/components/Discuss'
99

10+
import { useMediaQuery } from 'react-responsive'
11+
1012
function About(props) {
1113
const [commentList, setCommentList] = useState([])
14+
const iphoneScreen = useMediaQuery({ query: '(max-width: 576px)' })
1215

1316
useEffect(() => {
1417
const fetchList = () => {
@@ -20,7 +23,7 @@ function About(props) {
2023
}, [])
2124

2225
return (
23-
<div className='app-about'>
26+
<div className='app-about' style={{ paddingRight: iphoneScreen ? 0 : 20 }}>
2427
<Avatar src={SIDEBAR.avatar} />
2528
<span style={{ paddingLeft: 10 }}>{ABOUT.describe}</span>
2629
{ABOUT.renderMyInfo || null}

src/views/web/about/index.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.app-about {
2-
padding-right: 20px;
32
.about-list {
43
&,
54
ul {

0 commit comments

Comments
 (0)