From ae22e17de1d9745b0f49c09ccc11ea92dd976907 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 23 May 2022 17:28:00 -0700 Subject: Fix forms --- modern/src/settings/DevicePage.js | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'modern/src/settings/DevicePage.js') diff --git a/modern/src/settings/DevicePage.js b/modern/src/settings/DevicePage.js index 3f194570..d7b67b0b 100644 --- a/modern/src/settings/DevicePage.js +++ b/modern/src/settings/DevicePage.js @@ -23,9 +23,12 @@ import { useAdministrator } from '../common/util/permissions'; import SettingsMenu from './components/SettingsMenu'; import useCommonDeviceAttributes from '../common/attributes/useCommonDeviceAttributes'; -const useStyles = makeStyles(() => ({ +const useStyles = makeStyles((theme) => ({ details: { + display: 'flex', flexDirection: 'column', + gap: theme.spacing(2), + paddingBottom: theme.spacing(3), }, })); @@ -61,13 +64,11 @@ const DevicePage = () => { setItem({ ...item, name: event.target.value })} label={t('sharedName')} /> setItem({ ...item, uniqueId: event.target.value })} label={t('deviceIdentifier')} @@ -82,32 +83,27 @@ const DevicePage = () => { setItem({ ...item, groupId: Number(event.target.value) })} endpoint="/api/groups" label={t('groupParent')} /> setItem({ ...item, phone: event.target.value })} label={t('sharedPhone')} /> setItem({ ...item, model: event.target.value })} label={t('deviceModel')} /> setItem({ ...item, contact: event.target.value })} label={t('deviceContact')} /> setItem({ ...item, category: event.target.value })} @@ -148,7 +144,6 @@ const DevicePage = () => { { label={t('sharedGeofences')} /> { label={t('sharedNotifications')} /> { label={t('sharedDrivers')} /> { label={t('sharedComputedAttributes')} /> { label={t('sharedSavedCommands')} />