File tree Expand file tree Collapse file tree 4 files changed +57
-7
lines changed Expand file tree Collapse file tree 4 files changed +57
-7
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,11 @@ const PeriodContainer = styled.div`
31
31
border-radius: 8px;
32
32
gap: 16px;
33
33
padding: 32px 24px;
34
+ position: relative;
35
+
36
+ @media (max-width: 768px) {
37
+ grid-template-columns: 1fr;
38
+ }
34
39
`
35
40
36
41
const DetailsContainer = styled . div `
Original file line number Diff line number Diff line change @@ -8,8 +8,9 @@ import { Footer } from './BaseModal'
8
8
9
9
const Content = styled . div `
10
10
margin: 0 auto;
11
- padding: 48px 0 56px;
12
- width: 448px;
11
+ padding: 48px 24px 56px;
12
+ max-width: 448px;
13
+ width: 100%;
13
14
14
15
p {
15
16
margin: 0 0 16px;
Original file line number Diff line number Diff line change @@ -27,17 +27,39 @@ const Root = styled.div`
27
27
top: 0;
28
28
width: 100%;
29
29
z-index: 1;
30
+ display: flex;
31
+ flex-direction: column;
32
+ overflow: hidden;
30
33
`
31
34
32
35
const Column = styled . div `
33
36
margin: 0 auto;
34
- width: 528px;
37
+ max-width: 528px;
38
+ width: 100%;
39
+ height: 100%;
40
+ display: flex;
41
+ flex-direction: column;
42
+ overflow: hidden;
43
+ `
44
+
45
+ const ScrollableContent = styled . div `
46
+ flex: 1;
47
+ overflow-y: auto;
48
+ padding: 0 16px;
49
+
50
+ @media (min-width: 768px) {
51
+ padding: 0;
52
+ }
35
53
`
36
54
37
55
const Nav = styled . div `
38
56
box-sizing: content-box;
39
57
height: 64px;
40
- padding: 48px 0;
58
+ padding: 48px 16px;
59
+
60
+ @media (min-width: 768px) {
61
+ padding: 48px 0;
62
+ }
41
63
42
64
button {
43
65
appearance: none;
@@ -61,6 +83,11 @@ const Nav = styled.div`
61
83
font-weight: 400;
62
84
line-height: normal;
63
85
margin: 0 0 20px;
86
+ padding: 0 16px;
87
+
88
+ @media (min-width: 768px) {
89
+ padding: 0;
90
+ }
64
91
}
65
92
`
66
93
@@ -71,9 +98,24 @@ const BackButtonIcon = styled(SvgIcon)`
71
98
export const Actions = styled . div `
72
99
align-items: center;
73
100
display: flex;
74
- height: 40px;
75
101
justify-content: flex-end;
76
102
margin-top: 32px;
103
+ gap: 16px;
104
+ padding: 0 16px 16px;
105
+ background: #f5f5f5;
106
+
107
+ @media (min-width: 768px) {
108
+ padding: 0 0 16px;
109
+ }
110
+
111
+ @media (max-width: 767px) {
112
+ flex-direction: column-reverse;
113
+ align-items: stretch;
114
+
115
+ button {
116
+ width: 100%;
117
+ }
118
+ }
77
119
78
120
button {
79
121
min-width: 120px;
@@ -125,7 +167,8 @@ export default function ProjectModal({
125
167
) }
126
168
</ Nav >
127
169
{ ! ! title && < h2 > ‌{ title } </ h2 > }
128
- < div > { children } </ div >
170
+ < ScrollableContent > { children } </ ScrollableContent >
171
+ < Actions />
129
172
</ Column >
130
173
</ Root >
131
174
)
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ const Box = styled.div`
10
10
border-radius: 8px;
11
11
padding: 32px 24px;
12
12
margin: 0 auto;
13
- width: 408px;
13
+ width: 100%;
14
+ max-width: 408px;
14
15
15
16
h2 {
16
17
font-size: 24px;
You can’t perform that action at this time.
0 commit comments