aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-11-01 22:20:36 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-11-01 22:20:36 -0800
commit3c9f0117b2b3cdffc98f4ea19e5dbc7ed40e9b4f (patch)
treeccf168ae28ec7fe89963babcadc645674ff5d257 /modern/src/reports
parent162000dc250b1be24fd7e6dd4e9c3883ca6581c5 (diff)
downloadetbsa-traccar-web-3c9f0117b2b3cdffc98f4ea19e5dbc7ed40e9b4f.tar.gz
etbsa-traccar-web-3c9f0117b2b3cdffc98f4ea19e5dbc7ed40e9b4f.tar.bz2
etbsa-traccar-web-3c9f0117b2b3cdffc98f4ea19e5dbc7ed40e9b4f.zip
Add panel with slider
Diffstat (limited to 'modern/src/reports')
-rw-r--r--modern/src/reports/ReplayPage.js24
1 files changed, 13 insertions, 11 deletions
diff --git a/modern/src/reports/ReplayPage.js b/modern/src/reports/ReplayPage.js
index 826b361..0988284 100644
--- a/modern/src/reports/ReplayPage.js
+++ b/modern/src/reports/ReplayPage.js
@@ -1,5 +1,5 @@
import React from 'react';
-import { makeStyles } from '@material-ui/core';
+import { Container, makeStyles, Paper, Slider } from '@material-ui/core';
import MainToolbar from '../MainToolbar';
import Map from '../map/Map';
@@ -9,17 +9,14 @@ const useStyles = makeStyles(theme => ({
display: 'flex',
flexDirection: 'column',
},
- content: {
- flexGrow: 1,
- overflow: 'hidden',
- display: 'flex',
- flexDirection: 'row',
- [theme.breakpoints.down('xs')]: {
- flexDirection: 'column-reverse',
- }
+ controlPanel: {
+ position: 'absolute',
+ bottom: theme.spacing(5),
+ left: '50%',
+ transform: 'translateX(-50%)',
},
- mapContainer: {
- flexGrow: 1,
+ controlContent: {
+ padding: theme.spacing(2),
},
}));
@@ -31,6 +28,11 @@ const ReplayPage = () => {
<MainToolbar />
<Map>
</Map>
+ <Container maxWidth="sm" className={classes.controlPanel}>
+ <Paper className={classes.controlContent}>
+ <Slider defaultValue={30} />
+ </Paper>
+ </Container>
</div>
);
}