diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-23 17:28:00 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-23 17:28:00 -0700 |
commit | ae22e17de1d9745b0f49c09ccc11ea92dd976907 (patch) | |
tree | 4f2df47079cd519aa55a35448c5635caa8ee24ba /modern/src/settings/MaintenancePage.js | |
parent | 6007d38d572066d3aa6381964a863f2b291c8903 (diff) | |
download | trackermap-web-ae22e17de1d9745b0f49c09ccc11ea92dd976907.tar.gz trackermap-web-ae22e17de1d9745b0f49c09ccc11ea92dd976907.tar.bz2 trackermap-web-ae22e17de1d9745b0f49c09ccc11ea92dd976907.zip |
Fix forms
Diffstat (limited to 'modern/src/settings/MaintenancePage.js')
-rw-r--r-- | modern/src/settings/MaintenancePage.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modern/src/settings/MaintenancePage.js b/modern/src/settings/MaintenancePage.js index 5694d77b..d2cf02d9 100644 --- a/modern/src/settings/MaintenancePage.js +++ b/modern/src/settings/MaintenancePage.js @@ -24,9 +24,12 @@ import { useTranslation } from '../common/components/LocalizationProvider'; import usePositionAttributes from '../common/attributes/usePositionAttributes'; import SettingsMenu from './components/SettingsMenu'; -const useStyles = makeStyles(() => ({ +const useStyles = makeStyles((theme) => ({ details: { + display: 'flex', flexDirection: 'column', + gap: theme.spacing(2), + paddingBottom: theme.spacing(3), }, })); @@ -125,12 +128,11 @@ const MaintenancePage = () => { </AccordionSummary> <AccordionDetails className={classes.details}> <TextField - margin="normal" value={item.name || ''} onChange={(event) => setItem({ ...item, name: event.target.value })} label={t('sharedName')} /> - <FormControl margin="normal" fullWidth> + <FormControl> <InputLabel>{t('sharedType')}</InputLabel> <Select label={t('sharedType')} @@ -143,7 +145,6 @@ const MaintenancePage = () => { </Select> </FormControl> <TextField - margin="normal" type="number" value={rawToValue(item.start) || ''} onChange={(event) => setItem({ ...item, start: valueToRaw(event.target.value) })} @@ -153,7 +154,6 @@ const MaintenancePage = () => { }} /> <TextField - margin="normal" type="number" value={rawToValue(item.period) || ''} onChange={(event) => setItem({ ...item, period: valueToRaw(event.target.value) })} |