diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-24 09:49:50 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-24 09:49:50 -0700 |
commit | c7d24540bd0f03e4175335a597d44cc48dbb8e42 (patch) | |
tree | fd7bb7387ee79f01b234da778715ceca198c82f9 /modern | |
parent | 3d3dc1d0cd8894e5e3691ec1c2bd5381fdb5a409 (diff) | |
download | trackermap-web-c7d24540bd0f03e4175335a597d44cc48dbb8e42.tar.gz trackermap-web-c7d24540bd0f03e4175335a597d44cc48dbb8e42.tar.bz2 trackermap-web-c7d24540bd0f03e4175335a597d44cc48dbb8e42.zip |
Fix status card position
Diffstat (limited to 'modern')
-rw-r--r-- | modern/src/main/MainPage.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/main/MainPage.js b/modern/src/main/MainPage.js index 9190edd7..c33df655 100644 --- a/modern/src/main/MainPage.js +++ b/modern/src/main/MainPage.js @@ -76,13 +76,13 @@ const useStyles = makeStyles((theme) => ({ statusCard: { position: 'fixed', zIndex: 5, - [theme.breakpoints.up('sm')]: { + [theme.breakpoints.up('md')]: { left: `calc(50% + ${theme.dimensions.drawerWidthDesktop} / 2)`, bottom: theme.spacing(3), }, [theme.breakpoints.down('md')]: { left: '50%', - bottom: theme.spacing(3) + theme.dimensions.bottomBarHeight, + bottom: `calc(${theme.spacing(3)} + ${theme.dimensions.bottomBarHeight}px)`, }, transform: 'translateX(-50%)', }, |