Skip to content

Commit 2d0993a

Browse files
committed
correct spacing in dialog, use TextField with sheet select
1 parent b138fc7 commit 2d0993a

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

hwproj.front/src/components/Solutions/DownloadStats.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const DownloadStats: FC<DownloadStatsProps> = (props: DownloadStatsProps) => {
3131

3232
return (
3333
<DialogContent>
34-
<DialogActions>
34+
<DialogActions style={{ padding: 0, marginTop: 6 }}>
3535
<Grid item>
3636
<TextField
3737
fullWidth

hwproj.front/src/components/Solutions/ExportToGoogle.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
DialogContentText,
88
Grid,
99
MenuItem,
10-
Select,
1110
TextField,
1211
} from "@mui/material";
1312
import apiSingleton from "../../api/ApiSingleton";
@@ -91,7 +90,7 @@ const ExportToGoogle: FC<ExportToGoogleProps> = (props: ExportToGoogleProps) =>
9190
)}
9291
</Grid>
9392
</DialogContentText>
94-
<DialogActions>
93+
<DialogActions style={{ padding: 0, marginTop: 12 }}>
9594
<Grid item container spacing={1} style={{ marginRight: "auto" }}>
9695
<Grid item>
9796
<TextField
@@ -107,15 +106,16 @@ const ExportToGoogle: FC<ExportToGoogleProps> = (props: ExportToGoogleProps) =>
107106
</Grid>
108107
{googleSheetTitles && googleSheetTitles.value && googleSheetTitles.value.length > 0 &&
109108
<Grid item>
110-
<Select
109+
<TextField
110+
select
111111
size="small"
112112
id="demo-simple-select"
113113
label="Лист"
114114
value={selectedSheet}
115115
onChange={v => setState(prevState => ({ ...prevState, selectedSheet: +v.target.value }))}
116116
>
117117
{googleSheetTitles.value.map((title, i) => <MenuItem value={i}>{title}</MenuItem>)}
118-
</Select>
118+
</TextField>
119119
</Grid>
120120
}
121121
</Grid>

hwproj.front/src/components/Solutions/ExportToYandex.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ const ExportToYandex: FC<ExportToYandexProps> = (props: ExportToYandexProps) =>
157157
)}
158158
</Grid>
159159
</DialogContentText>
160-
<DialogActions>
160+
<DialogActions style={{ padding: 0, marginTop: 12 }}>
161161
<Grid item>
162162
<Button variant="text" color="inherit" type="button"
163163
onClick={props.onCancellation}>
@@ -176,7 +176,7 @@ const ExportToYandex: FC<ExportToYandexProps> = (props: ExportToYandexProps) =>
176176
</Alert>
177177
</Grid>
178178
</DialogContentText>
179-
<DialogActions>
179+
<DialogActions style={{ padding: 0, marginTop: 12 }}>
180180
<Grid item style={{ marginRight: "auto" }}>
181181
<TextField
182182
fullWidth

0 commit comments

Comments
 (0)