@@ -37,6 +37,25 @@ const useStyles = makeStyles((theme: Theme) =>
37
37
isClickable : {
38
38
cursor : 'pointer' ,
39
39
} ,
40
+ headerCellIcon : {
41
+ width : 56 ,
42
+ } ,
43
+ defaultCollapsibleCell : {
44
+ padding : 0 ,
45
+ } ,
46
+ collapsibleCellContent : {
47
+ paddingBottom : 0 ,
48
+ paddingTop : 0 ,
49
+ width : '100%' ,
50
+ } ,
51
+ collapsibleCellIcon : {
52
+ paddingBottom : 0 ,
53
+ paddingTop : 0 ,
54
+ paddingRight : 4 ,
55
+ } ,
56
+ rawSourceCell : {
57
+ paddingTop : 0 ,
58
+ } ,
40
59
} ) ,
41
60
) ;
42
61
@@ -121,7 +140,7 @@ const Mails = () => {
121
140
< TableCell component = "th" scope = "row" >
122
141
< Typography variant = "button" > Subject</ Typography >
123
142
</ TableCell >
124
- < TableCell style = { { width : 56 } } />
143
+ < TableCell className = { classes . headerCellIcon } />
125
144
</ TableRow >
126
145
</ TableHead >
127
146
< TableBody >
@@ -151,7 +170,10 @@ const Mails = () => {
151
170
</ TableCell >
152
171
</ TableRow >
153
172
< TableRow >
154
- < TableCell colSpan = { 6 } style = { { padding : 0 } } >
173
+ < TableCell
174
+ colSpan = { 6 }
175
+ className = { classes . defaultCollapsibleCell }
176
+ >
155
177
< Collapse
156
178
in = { mailsOpened . includes ( mail . id ) }
157
179
timeout = "auto"
@@ -161,11 +183,7 @@ const Mails = () => {
161
183
< TableBody >
162
184
< TableRow >
163
185
< TableCell
164
- style = { {
165
- paddingBottom : 0 ,
166
- paddingTop : 0 ,
167
- width : '100%' ,
168
- } }
186
+ className = { classes . collapsibleCellContent }
169
187
>
170
188
< Box pt = { 2 } pb = { 2 } >
171
189
< Typography variant = "body1" >
@@ -175,11 +193,7 @@ const Mails = () => {
175
193
</ TableCell >
176
194
177
195
< TableCell
178
- style = { {
179
- paddingBottom : 0 ,
180
- paddingTop : 0 ,
181
- paddingRight : 4 ,
182
- } }
196
+ className = { classes . collapsibleCellIcon }
183
197
>
184
198
< Tooltip title = "Raw source" >
185
199
< IconButton
@@ -200,7 +214,7 @@ const Mails = () => {
200
214
< TableRow >
201
215
< TableCell
202
216
colSpan = { 2 }
203
- style = { { paddingTop : 0 } }
217
+ className = { classes . rawSourceCell }
204
218
>
205
219
< Box mt = { 2 } >
206
220
< TextField
0 commit comments