File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,11 @@ import { SIDEBAR, ABOUT } from '@/config'
77import axios from '@/utils/axios'
88import Discuss from '@/components/Discuss'
99
10+ import { useMediaQuery } from 'react-responsive'
11+
1012function 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 }
Original file line number Diff line number Diff line change 11.app-about {
2- padding-right : 20px ;
32 .about-list {
43 & ,
54 ul {
You can’t perform that action at this time.
0 commit comments