Skip to content

Commit c34756e

Browse files
committed
inline styles to classes
Signed-off-by: Tobias Winkler <[email protected]>
1 parent 7727178 commit c34756e

File tree

1 file changed

+27
-13
lines changed

1 file changed

+27
-13
lines changed

src/app/pages/Mails/index.tsx

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,25 @@ const useStyles = makeStyles((theme: Theme) =>
3737
isClickable: {
3838
cursor: 'pointer',
3939
},
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+
},
4059
}),
4160
);
4261

@@ -121,7 +140,7 @@ const Mails = () => {
121140
<TableCell component="th" scope="row">
122141
<Typography variant="button">Subject</Typography>
123142
</TableCell>
124-
<TableCell style={{ width: 56 }} />
143+
<TableCell className={classes.headerCellIcon} />
125144
</TableRow>
126145
</TableHead>
127146
<TableBody>
@@ -151,7 +170,10 @@ const Mails = () => {
151170
</TableCell>
152171
</TableRow>
153172
<TableRow>
154-
<TableCell colSpan={6} style={{ padding: 0 }}>
173+
<TableCell
174+
colSpan={6}
175+
className={classes.defaultCollapsibleCell}
176+
>
155177
<Collapse
156178
in={mailsOpened.includes(mail.id)}
157179
timeout="auto"
@@ -161,11 +183,7 @@ const Mails = () => {
161183
<TableBody>
162184
<TableRow>
163185
<TableCell
164-
style={{
165-
paddingBottom: 0,
166-
paddingTop: 0,
167-
width: '100%',
168-
}}
186+
className={classes.collapsibleCellContent}
169187
>
170188
<Box pt={2} pb={2}>
171189
<Typography variant="body1">
@@ -175,11 +193,7 @@ const Mails = () => {
175193
</TableCell>
176194

177195
<TableCell
178-
style={{
179-
paddingBottom: 0,
180-
paddingTop: 0,
181-
paddingRight: 4,
182-
}}
196+
className={classes.collapsibleCellIcon}
183197
>
184198
<Tooltip title="Raw source">
185199
<IconButton
@@ -200,7 +214,7 @@ const Mails = () => {
200214
<TableRow>
201215
<TableCell
202216
colSpan={2}
203-
style={{ paddingTop: 0 }}
217+
className={classes.rawSourceCell}
204218
>
205219
<Box mt={2}>
206220
<TextField

0 commit comments

Comments
 (0)