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

Commit a17566a

Browse files
committed
fix(mobile): display wired on mobile, closes #596
1 parent 10281ec commit a17566a

File tree

6 files changed

+25
-4
lines changed

6 files changed

+25
-4
lines changed

src/containers/JobContent/styles/company_card.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ import { theme, cs } from '@utils'
55

66
export const Wrapper = styled.div`
77
${cs.flexColumn()};
8-
width: 100%;
98
min-height: 140px;
109
padding: 20px;
1110
max-width: 300px;
1211
background: ${theme('preview.articleBg')};
1312
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
1413
margin-bottom: 15px;
14+
${cs.media.mobile`
15+
width: 100%;
16+
`};
1517
`
1618
export const CompanyBrand = styled.div`
1719
${cs.flex()};

src/containers/JobContent/styles/index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ export const MainWrapper = styled.div`
2727
`
2828
export const SidebarWrapper = styled.div`
2929
min-width: 250px;
30+
${cs.media.mobile`
31+
display: none;
32+
`};
3033
`
3134
/* background: ${theme('preview.articleBg')}; */
3235
export const ArticleWrapper = styled.div`
@@ -39,8 +42,9 @@ export const ArticleWrapper = styled.div`
3942
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
4043
4144
${cs.media.tablet`
42-
padding: 30px 20px;
45+
padding: 30px 10px;
4346
min-height: 40vh;
47+
margin-right: 0;
4448
`};
4549
`
4650
export const BodyHeaderWrapper = styled.div`

src/containers/PostContent/styles/index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ export const MainWrapper = styled.div`
2929
`
3030
export const SidebarWrapper = styled.div`
3131
min-width: 250px;
32+
${cs.media.mobile`
33+
display: none;
34+
`};
3235
`
3336
/* background: ${theme('preview.articleBg')}; */
3437
export const ArticleWrapper = styled.div`
@@ -40,8 +43,9 @@ export const ArticleWrapper = styled.div`
4043
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
4144
min-height: 200px;
4245
${cs.media.mobile`
43-
padding: 30px 20px;
46+
padding: 30px 10px;
4447
min-height: 20vh;
48+
margin-right: 0;
4549
`};
4650
`
4751

src/containers/RepoContent/styles/index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ export const MainWrapper = styled.div`
2727
`
2828
export const SidebarWrapper = styled.div`
2929
min-width: 250px;
30+
${cs.media.mobile`
31+
display: none;
32+
`};
3033
`
3134
/* background: ${theme('preview.articleBg')}; */
3235
export const ArticleWrapper = styled.div`
@@ -38,8 +41,9 @@ export const ArticleWrapper = styled.div`
3841
min-height: 200px;
3942
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
4043
${cs.media.tablet`
41-
padding: 30px 20px;
44+
padding: 30px 10px;
4245
min-height: 30vh;
46+
margin-right: 0;
4347
`};
4448
`
4549

src/containers/RepoContent/styles/repo_status_card.js

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ export const Wrapper = styled.div`
1111
background: ${theme('preview.articleBg')};
1212
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
1313
margin-bottom: 15px;
14+
${cs.media.mobile`
15+
width: 100%;
16+
`};
1417
`
1518
export const ReleaseWrapper = styled.div`
1619
${cs.flex('justify-between')};

src/containers/VideoContent/styles/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ export const MainWrapper = styled.div`
2727
`
2828
export const SidebarWrapper = styled.div`
2929
min-width: 250px;
30+
${cs.media.mobile`
31+
display: none;
32+
`};
3033
`
3134
export const ArticleWrapper = styled.div`
3235
font-size: 1.1rem;
@@ -38,6 +41,7 @@ export const ArticleWrapper = styled.div`
3841
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
3942
${cs.media.tablet`
4043
padding: 30px 20px;
44+
margin-right: 0;
4145
`};
4246
`
4347
export const BodyHeaderWrapper = styled.div`

0 commit comments

Comments
 (0)