aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modern/package.json2
-rw-r--r--modern/src/map/mapStyles.js1
-rw-r--r--modern/src/reports/RouteReportPage.js13
3 files changed, 10 insertions, 6 deletions
diff --git a/modern/package.json b/modern/package.json
index a2493f3..b796e17 100644
--- a/modern/package.json
+++ b/modern/package.json
@@ -9,7 +9,7 @@
"@material-ui/data-grid": "^4.0.0-alpha.22",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.56",
- "@reduxjs/toolkit": "^1.4.0",
+ "@reduxjs/toolkit": "^1.5.1",
"@turf/turf": "^5.1.6",
"mapbox-gl": "^1.12.0",
"moment": "^2.28.0",
diff --git a/modern/src/map/mapStyles.js b/modern/src/map/mapStyles.js
index ff323cb..00a8666 100644
--- a/modern/src/map/mapStyles.js
+++ b/modern/src/map/mapStyles.js
@@ -5,6 +5,7 @@ export const styleCustom = (url, attribution) => ({
type: 'raster',
tiles: [url],
attribution: attribution,
+ tileSize: 256,
},
},
glyphs: 'https://cdn.traccar.com/map/fonts/{fontstack}/{range}.pbf',
diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js
index b8bad00..02d41a2 100644
--- a/modern/src/reports/RouteReportPage.js
+++ b/modern/src/reports/RouteReportPage.js
@@ -5,6 +5,7 @@ import { formatDistance, formatSpeed, formatBoolean, formatDate, formatCoordinat
import ReportFilter from './ReportFilter';
import ReportLayoutPage from './ReportLayoutPage';
import { useAttributePreference, usePreference } from '../common/preferences';
+import { Paper } from '@material-ui/core';
const Filter = ({ setItems }) => {
@@ -81,11 +82,13 @@ const RouteReportPage = () => {
return (
<ReportLayoutPage filter={<Filter setItems={setItems} />}>
- <DataGrid
- rows={items}
- columns={columns}
- hideFooter
- autoHeight />
+ <Paper>
+ <DataGrid
+ rows={items}
+ columns={columns}
+ hideFooter
+ autoHeight />
+ </Paper>
</ReportLayoutPage>
);
};