Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 893d344

Browse files
committed
refactor(media-query): improve jobitem city-card and user map
1 parent abe246c commit 893d344

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

components/JobItem/CompanyInfo.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ const CompanyInfo = ({
3838
</TopHalf>
3939
<Footer>
4040
&quot;
41-
{R.isEmpty(desc) ? '---' : desc}
42-
&quot;
41+
{R.isEmpty(desc) ? '---' : desc} &quot;
4342
</Footer>
4443
</Wrapper>
4544
)

components/JobItem/styles/company_info.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,18 @@ export const TopHalf = styled.div`
1414
export const BaseInfo = styled.div`
1515
flex-grow: 1;
1616
margin-bottom: 6px;
17+
${cs.media.mobile`
18+
max-width: 75%;
19+
`};
1720
`
1821
export const CompanyLogo = styled(Img)`
1922
width: 50px;
2023
height: 50px;
2124
border-radius: 4px;
25+
${cs.media.mobile`
26+
width: 40px;
27+
height: 40px;
28+
`};
2229
`
2330
export const Header = styled.div``
2431
export const Middle = styled.div`
@@ -29,12 +36,15 @@ export const Middle = styled.div`
2936
export const Footer = styled.div`
3037
font-size: 0.8rem;
3138
color: ${theme('thread.articleDigest')};
39+
${cs.media.mobile`
40+
${cs.truncate('100px')};
41+
`};
3242
`
3343
export const Title = styled.div`
3444
color: ${theme('thread.articleTitle')};
3545
font-size: 0.9rem;
3646
${cs.media.mobile`
37-
${cs.truncate('100px')};
47+
${cs.truncate('90px')};
3848
`};
3949
`
4050
export const StatesWrapper = styled.div`

containers/PostsThread/styles/city_card.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ export const Wrapper = styled.div`
2525
cursor: pointer;
2626
}
2727
${cs.media.mobile`
28-
width: 160px;
28+
width: 140px;
2929
height: 200px;
30+
margin-right: 8px;
3031
`};
3132
`
3233

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
import styled from 'styled-components'
22

33
// import Img from 'components/Img'
4-
// import { theme } from 'utils'
4+
import { cs } from 'utils'
55

66
export const Wrapper = styled.div`
77
width: 100%;
88
position: relative;
9+
${cs.media.mobile`overflow: scroll`};
910
`
1011
export const Title = styled.div``
1112

1213
export const MapWrapper = styled.div`
1314
width: 100%;
15+
${cs.media.mobile`width: 250%;`};
1416
`

0 commit comments

Comments
 (0)