aboutsummaryrefslogtreecommitdiff
path: root/modern/src/main/MainPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-22 09:32:59 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-22 09:32:59 -0700
commit761501c4a0712629c001a9103b572caa3698c7f5 (patch)
tree134ecdd0611f38853363f57e752b375ce868acfb /modern/src/main/MainPage.js
parent36c41d6e0b20756d0da7f13a322d337a69a78d6f (diff)
downloadtrackermap-web-761501c4a0712629c001a9103b572caa3698c7f5.tar.gz
trackermap-web-761501c4a0712629c001a9103b572caa3698c7f5.tar.bz2
trackermap-web-761501c4a0712629c001a9103b572caa3698c7f5.zip
Fix map padding jump
Diffstat (limited to 'modern/src/main/MainPage.js')
-rw-r--r--modern/src/main/MainPage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/main/MainPage.js b/modern/src/main/MainPage.js
index 2f3ed3dc..88d101ca 100644
--- a/modern/src/main/MainPage.js
+++ b/modern/src/main/MainPage.js
@@ -140,7 +140,6 @@ const MainPage = () => {
return (
<div className={classes.root}>
<Map>
- {!isTablet && <MapPadding left={parseInt(theme.dimensions.drawerWidthDesktop, 10)} />}
<CurrentLocationMap />
<GeofenceMap />
<AccuracyMap />
@@ -150,6 +149,7 @@ const MainPage = () => {
<SelectedDeviceMap />
<PoiMap />
</Map>
+ {!isTablet && <MapPadding left={parseInt(theme.dimensions.drawerWidthDesktop, 10)} />}
<Button
variant="contained"
color={isPhone ? 'secondary' : 'primary'}