Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Commit 709881a

Browse files
committed
fix mobile issue add hr
1 parent 5c01919 commit 709881a

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

src/components/Team.js

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ const AvatarLarge = styled(Image)`
1414
display:block;
1515
text-align:center;
1616
`
17+
const Titles = styled.div`
18+
@media(max-width:960px) {
19+
text-align:center;
20+
}
21+
`
1722

1823
export default () => (
1924
<WhoWeArePageQuery
@@ -25,20 +30,23 @@ export default () => (
2530
<Card variant='outlined' elevation={2}>
2631
<CardContent>
2732
<Grid container>
28-
<Grid item xs={2} alignItems='center' justifyContent='center'>
33+
<Grid item sm={2} xs={12}>
2934
<AvatarLarge fluid={member.avatar.childImageSharp.fluid} />
3035
</Grid>
31-
<Grid item xs={10}>
32-
<Typography gutterBottom variant='h5' component='h2'>
33-
{member.name}
34-
</Typography>
35-
<Typography gutterBottom variant='h5' component='span'>
36-
{member.role && member.role}
37-
</Typography>
38-
{member.role && member.location ? ' - ' : ''}
39-
<Typography gutterBottom variant='h5' component='span'>
40-
{member.location && member.location}
41-
</Typography>
36+
<Grid item sm={10} xs={12}>
37+
<Titles>
38+
<Typography gutterBottom variant='h5' component='h2'>
39+
{member.name}
40+
</Typography>
41+
<Typography gutterBottom variant='h5' component='span'>
42+
{member.role && member.role}
43+
</Typography>
44+
{member.role && member.location ? ' - ' : ''}
45+
<Typography gutterBottom variant='h5' component='span'>
46+
{member.location && member.location}
47+
</Typography>
48+
<hr />
49+
</Titles>
4250
<Typography variant='body2' color='textSecondary' component='p'>
4351
{member.description}
4452
</Typography>

0 commit comments

Comments
 (0)