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/GroupPage.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/GroupPage.js')
-rw-r--r-- | modern/src/settings/GroupPage.js | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/modern/src/settings/GroupPage.js b/modern/src/settings/GroupPage.js index 3f4cc8d8..b817ba7e 100644 --- a/modern/src/settings/GroupPage.js +++ b/modern/src/settings/GroupPage.js @@ -16,9 +16,12 @@ import useCommonDeviceAttributes from '../common/attributes/useCommonDeviceAttri import useGroupAttributes from '../common/attributes/useGroupAttributes'; import { prefixString } from '../common/util/stringUtils'; -const useStyles = makeStyles(() => ({ +const useStyles = makeStyles((theme) => ({ details: { + display: 'flex', flexDirection: 'column', + gap: theme.spacing(2), + paddingBottom: theme.spacing(3), }, })); @@ -52,7 +55,6 @@ const GroupPage = () => { </AccordionSummary> <AccordionDetails className={classes.details}> <TextField - margin="normal" value={item.name || ''} onChange={(event) => setItem({ ...item, name: event.target.value })} label={t('sharedName')} @@ -67,7 +69,6 @@ const GroupPage = () => { </AccordionSummary> <AccordionDetails className={classes.details}> <SelectField - margin="normal" value={item.groupId || 0} onChange={(event) => setItem({ ...item, groupId: Number(event.target.value) })} endpoint="/api/groups" @@ -98,7 +99,6 @@ const GroupPage = () => { </AccordionSummary> <AccordionDetails className={classes.details}> <LinkField - margin="normal" endpointAll="/api/geofences" endpointLinked={`/api/geofences?groupId=${item.id}`} baseId={item.id} @@ -107,7 +107,6 @@ const GroupPage = () => { label={t('sharedGeofences')} /> <LinkField - margin="normal" endpointAll="/api/notifications" endpointLinked={`/api/notifications?groupId=${item.id}`} baseId={item.id} @@ -117,7 +116,6 @@ const GroupPage = () => { label={t('sharedNotifications')} /> <LinkField - margin="normal" endpointAll="/api/drivers" endpointLinked={`/api/drivers?groupId=${item.id}`} baseId={item.id} @@ -126,7 +124,6 @@ const GroupPage = () => { label={t('sharedDrivers')} /> <LinkField - margin="normal" endpointAll="/api/attributes/computed" endpointLinked={`/api/attributes/computed?groupId=${item.id}`} baseId={item.id} @@ -136,7 +133,6 @@ const GroupPage = () => { label={t('sharedComputedAttributes')} /> <LinkField - margin="normal" endpointAll="/api/commands" endpointLinked={`/api/commands?groupId=${item.id}`} baseId={item.id} @@ -146,7 +142,6 @@ const GroupPage = () => { label={t('sharedSavedCommands')} /> <LinkField - margin="normal" endpointAll="/api/maintenance" endpointLinked={`/api/maintenance?groupId=${item.id}`} baseId={item.id} |