File tree Expand file tree Collapse file tree 5 files changed +10
-33
lines changed Expand file tree Collapse file tree 5 files changed +10
-33
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ const Block = styled.div<{ forHome: boolean }>`
159
159
display: flex;
160
160
flex-direction: column;
161
161
162
- ${ props =>
162
+ ${ ( props ) =>
163
163
! props . forHome &&
164
164
css `
165
165
${ mediaQuery ( 1440 ) } {
@@ -170,7 +170,7 @@ const Block = styled.div<{ forHome: boolean }>`
170
170
}
171
171
` }
172
172
173
- ${ mediaQuery ( 944 ) } {
173
+ ${ mediaQuery ( 1056 ) } {
174
174
width: calc(50% - 2rem);
175
175
}
176
176
${ mediaQuery ( 767 ) } {
@@ -207,7 +207,7 @@ const Content = styled.div<{ clamp: boolean }>`
207
207
overflow-wrap: break-word;
208
208
font-size: 0.875rem;
209
209
line-height: 1.5;
210
- ${ props =>
210
+ ${ ( props ) =>
211
211
props . clamp &&
212
212
css `
213
213
height: 3.9375rem;
@@ -217,7 +217,7 @@ const Content = styled.div<{ clamp: boolean }>`
217
217
overflow: hidden;
218
218
text-overflow: ellipsis;
219
219
` }
220
- /* ${ props =>
220
+ /* ${ ( props ) =>
221
221
! props . clamp &&
222
222
css `
223
223
height: 15.875rem;
Original file line number Diff line number Diff line change @@ -4,14 +4,12 @@ import { mediaQuery } from '../../lib/styles/media';
4
4
5
5
export type HomeLayoutProps = {
6
6
main : React . ReactNode ;
7
- side : React . ReactNode ;
8
7
} ;
9
8
10
- function HomeLayout ( { main, side } : HomeLayoutProps ) {
9
+ function HomeLayout ( { main } : HomeLayoutProps ) {
11
10
return (
12
11
< Block >
13
12
< Main > { main } </ Main >
14
- < Side > { side } </ Side >
15
13
</ Block >
16
14
) ;
17
15
}
@@ -23,16 +21,5 @@ const Block = styled.div`
23
21
const Main = styled . main `
24
22
flex: 1;
25
23
` ;
26
- const Side = styled . aside `
27
- margin-left: 6rem;
28
- width: 16rem;
29
- ${ mediaQuery ( 1440 ) } {
30
- margin-left: 3rem;
31
- width: 12rem;
32
- }
33
- ${ mediaQuery ( 944 ) } {
34
- display: none;
35
- }
36
- ` ;
37
24
38
25
export default HomeLayout ;
Original file line number Diff line number Diff line change @@ -77,12 +77,9 @@ const Wrapper = styled.div`
77
77
` ;
78
78
79
79
const MobileMore = styled . div `
80
- display: none;
81
- ${ mediaQuery ( 944 ) } {
82
- display: flex;
83
- align-items: center;
84
- justify-content: center;
85
- }
80
+ display: flex;
81
+ align-items: center;
82
+ justify-content: center;
86
83
` ;
87
84
88
85
const Block = styled . div `
Original file line number Diff line number Diff line change @@ -19,15 +19,9 @@ const Block = styled.div`
19
19
width: 1376px;
20
20
}
21
21
${ mediaQuery ( 1440 ) } {
22
- width: 1280px ;
22
+ width: 1024px ;
23
23
}
24
- ${ mediaQuery ( 1312 ) } {
25
- width: 912px;
26
- }
27
- ${ mediaQuery ( 944 ) } {
28
- width: calc(100% - 2rem);
29
- }
30
- ${ mediaQuery ( 767 ) } {
24
+ ${ mediaQuery ( 1056 ) } {
31
25
width: calc(100% - 2rem);
32
26
}
33
27
` ;
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ function HomePage(props: HomePageProps) {
30
30
< Route path = { [ '/recent' ] } component = { RecentPostsPage } />
31
31
</ >
32
32
}
33
- side = { < HomeSidebar /> }
34
33
/>
35
34
</ MainResponsive >
36
35
</ MainTemplate >
You can’t perform that action at this time.
0 commit comments