diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-01 22:20:36 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-01 22:20:36 -0800 |
commit | 3c9f0117b2b3cdffc98f4ea19e5dbc7ed40e9b4f (patch) | |
tree | ccf168ae28ec7fe89963babcadc645674ff5d257 /modern/src/reports/ReplayPage.js | |
parent | 162000dc250b1be24fd7e6dd4e9c3883ca6581c5 (diff) | |
download | trackermap-web-3c9f0117b2b3cdffc98f4ea19e5dbc7ed40e9b4f.tar.gz trackermap-web-3c9f0117b2b3cdffc98f4ea19e5dbc7ed40e9b4f.tar.bz2 trackermap-web-3c9f0117b2b3cdffc98f4ea19e5dbc7ed40e9b4f.zip |
Add panel with slider
Diffstat (limited to 'modern/src/reports/ReplayPage.js')
-rw-r--r-- | modern/src/reports/ReplayPage.js | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/modern/src/reports/ReplayPage.js b/modern/src/reports/ReplayPage.js index 826b361a..09882840 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> ); } |