aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/ComputedAttributesPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-06-13 06:26:44 -0700
committerAnton Tananaev <anton@traccar.org>2023-06-13 06:26:44 -0700
commit299b69887b2f2fcedc71b6a000effeab5ba58b25 (patch)
tree19122dc50f021800f4502fdc10fda19272ee95d9 /modern/src/settings/ComputedAttributesPage.js
parentcb7106f4bfd6856470861890ea5e4c0bbc4703ac (diff)
downloadtrackermap-web-299b69887b2f2fcedc71b6a000effeab5ba58b25.tar.gz
trackermap-web-299b69887b2f2fcedc71b6a000effeab5ba58b25.tar.bz2
trackermap-web-299b69887b2f2fcedc71b6a000effeab5ba58b25.zip
Add table bottom margin (fix #1091)
Diffstat (limited to 'modern/src/settings/ComputedAttributesPage.js')
-rw-r--r--modern/src/settings/ComputedAttributesPage.js13
1 files changed, 3 insertions, 10 deletions
diff --git a/modern/src/settings/ComputedAttributesPage.js b/modern/src/settings/ComputedAttributesPage.js
index d9b2786d..6d098547 100644
--- a/modern/src/settings/ComputedAttributesPage.js
+++ b/modern/src/settings/ComputedAttributesPage.js
@@ -2,7 +2,6 @@ import React, { useState } from 'react';
import {
Table, TableRow, TableCell, TableHead, TableBody,
} from '@mui/material';
-import makeStyles from '@mui/styles/makeStyles';
import { useEffectAsync } from '../reactHelper';
import { useTranslation } from '../common/components/LocalizationProvider';
import { useAdministrator } from '../common/util/permissions';
@@ -12,16 +11,10 @@ import CollectionFab from './components/CollectionFab';
import CollectionActions from './components/CollectionActions';
import TableShimmer from '../common/components/TableShimmer';
import SearchHeader, { filterByKeyword } from './components/SearchHeader';
-
-const useStyles = makeStyles((theme) => ({
- columnAction: {
- width: '1%',
- paddingRight: theme.spacing(1),
- },
-}));
+import useSettingsStyles from './common/useSettingsStyles';
const ComputedAttributesPage = () => {
- const classes = useStyles();
+ const classes = useSettingsStyles();
const t = useTranslation();
const [timestamp, setTimestamp] = useState(Date.now());
@@ -47,7 +40,7 @@ const ComputedAttributesPage = () => {
return (
<PageLayout menu={<SettingsMenu />} breadcrumbs={['settingsTitle', 'sharedComputedAttributes']}>
<SearchHeader keyword={searchKeyword} setKeyword={setSearchKeyword} />
- <Table>
+ <Table className={classes.table}>
<TableHead>
<TableRow>
<TableCell>{t('sharedDescription')}</TableCell>