File tree Expand file tree Collapse file tree 3 files changed +38
-3
lines changed Expand file tree Collapse file tree 3 files changed +38
-3
lines changed Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
2
import styled from 'styled-components' ;
3
3
import Button from '../common/Button' ;
4
+ import media from '../../lib/styles/media' ;
4
5
5
6
const PublishActionButtonsBlock = styled . div `
6
7
display: flex;
7
8
justify-content: flex-end;
9
+ ${ media . custom ( 767 ) } {
10
+ margin-top: 2rem;
11
+ }
8
12
` ;
9
13
10
14
export interface PublishActionButtonsProps {
Original file line number Diff line number Diff line change @@ -41,11 +41,16 @@ const Button = styled.button<{ active: boolean }>`
41
41
` }
42
42
43
43
svg {
44
- margin-right: 1.5rem;
45
44
}
46
45
& + & {
47
46
margin-left: 1rem;
48
47
}
48
+ .description {
49
+ flex: 1;
50
+ display: flex;
51
+ justify-content: center;
52
+ align-items: center;
53
+ }
49
54
` ;
50
55
51
56
export interface PublishPrivacySettingProps {
@@ -69,11 +74,11 @@ const PublishPrivacySetting: React.FC<PublishPrivacySettingProps> = ({
69
74
< PublishPrivacySettingBlock title = "공개 설정" >
70
75
< Button active = { ! isPrivate } onClick = { onClickPublic } >
71
76
< GlobeIcon />
72
- 전체 공개
77
+ < div className = "description" > 전체 공개</ div >
73
78
</ Button >
74
79
< Button active = { isPrivate } onClick = { onClickPrivate } >
75
80
< LockIcon />
76
- 비공개
81
+ < div className = "description" > 비공개</ div >
77
82
</ Button >
78
83
</ PublishPrivacySettingBlock >
79
84
) ;
Original file line number Diff line number Diff line change @@ -4,12 +4,29 @@ import palette from '../../lib/styles/palette';
4
4
import zIndexes from '../../lib/styles/zIndexes' ;
5
5
import transitions from '../../lib/styles/transitions' ;
6
6
import HideScroll from '../common/HideScroll' ;
7
+ import media from '../../lib/styles/media' ;
7
8
8
9
const PublishScreenTemplateBlock = styled . div < { visible : boolean } > `
9
10
display: flex;
10
11
justify-content: center;
11
12
align-items: center;
12
13
position: fixed;
14
+ @media (max-width: 1024px) and (orientation: landscape) {
15
+ align-items: flex-start;
16
+ padding-top: 2rem;
17
+ padding-bottom: 2rem;
18
+ overflow: auto;
19
+ }
20
+
21
+ ${ media . custom ( 767 ) } {
22
+ align-items: flex-start;
23
+ padding-top: 2rem;
24
+ padding-bottom: 2rem;
25
+ overflow: auto;
26
+ padding-left: 1rem;
27
+ padding-right: 1rem;
28
+ }
29
+
13
30
left: 0;
14
31
top: 0;
15
32
width: 100%;
@@ -30,6 +47,12 @@ const PublishScreenTemplateBlock = styled.div<{ visible: boolean }>`
30
47
const Wrapper = styled . div `
31
48
width: 768px;
32
49
display: flex;
50
+ ${ media . medium } {
51
+ width: 704px;
52
+ }
53
+ ${ media . custom ( 767 ) } {
54
+ flex-direction: column;
55
+ }
33
56
` ;
34
57
const Pane = styled . div `
35
58
flex: 1;
@@ -46,6 +69,9 @@ const Separator = styled.div`
46
69
background: ${ palette . gray2 } ;
47
70
margin-left: 2rem;
48
71
margin-right: 2rem;
72
+ ${ media . custom ( 767 ) } {
73
+ display: none;
74
+ }
49
75
` ;
50
76
51
77
export interface PublishScreenTemplateProps {
You can’t perform that action at this time.
0 commit comments