diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-23 08:49:58 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-23 08:49:58 -0700 |
commit | b98137ab304e8068484926eb31b77bd727a6407d (patch) | |
tree | f2fb0c55e27652c1a6b831aad6e8ff46a3637832 /modern/src/other | |
parent | 145fd060b544ea7886c5b6b11b24fb3da9b93127 (diff) | |
download | trackermap-web-b98137ab304e8068484926eb31b77bd727a6407d.tar.gz trackermap-web-b98137ab304e8068484926eb31b77bd727a6407d.tar.bz2 trackermap-web-b98137ab304e8068484926eb31b77bd727a6407d.zip |
Use standard icon button size
Diffstat (limited to 'modern/src/other')
-rw-r--r-- | modern/src/other/EventPage.js | 2 | ||||
-rw-r--r-- | modern/src/other/GeofencesPage.js | 2 | ||||
-rw-r--r-- | modern/src/other/PositionPage.js | 2 | ||||
-rw-r--r-- | modern/src/other/ReplayPage.js | 18 |
4 files changed, 8 insertions, 16 deletions
diff --git a/modern/src/other/EventPage.js b/modern/src/other/EventPage.js index d2f12ed1..f4427ca9 100644 --- a/modern/src/other/EventPage.js +++ b/modern/src/other/EventPage.js @@ -61,7 +61,7 @@ const EventPage = () => { <div className={classes.root}> <AppBar color="inherit" position="static"> <Toolbar> - <IconButton size="large" color="inherit" edge="start" onClick={() => navigate('/')}> + <IconButton color="inherit" edge="start" onClick={() => navigate('/')}> <ArrowBackIcon /> </IconButton> <Typography variant="h6">{t('positionEvent')}</Typography> diff --git a/modern/src/other/GeofencesPage.js b/modern/src/other/GeofencesPage.js index 6f60ce42..6706ec98 100644 --- a/modern/src/other/GeofencesPage.js +++ b/modern/src/other/GeofencesPage.js @@ -66,7 +66,7 @@ const GeofencesPage = () => { classes={{ paper: classes.drawerPaper }} > <div className={classes.drawerHeader}> - <IconButton size="large" onClick={() => navigate(-1)}> + <IconButton onClick={() => navigate(-1)}> <ArrowBackIcon /> </IconButton> <Typography variant="h6" color="inherit" noWrap> diff --git a/modern/src/other/PositionPage.js b/modern/src/other/PositionPage.js index 2c755a5a..61c40902 100644 --- a/modern/src/other/PositionPage.js +++ b/modern/src/other/PositionPage.js @@ -74,7 +74,7 @@ const PositionPage = () => { <div className={classes.root}> <AppBar position="sticky" color="inherit"> <Toolbar> - <IconButton size="large" color="inherit" edge="start" onClick={() => navigate(-1)}> + <IconButton color="inherit" edge="start" onClick={() => navigate(-1)}> <ArrowBackIcon /> </IconButton> <Typography variant="h6"> diff --git a/modern/src/other/ReplayPage.js b/modern/src/other/ReplayPage.js index 4b3c4c09..1c82c913 100644 --- a/modern/src/other/ReplayPage.js +++ b/modern/src/other/ReplayPage.js @@ -147,13 +147,13 @@ const ReplayPage = () => { <div className={classes.sidebar}> <Paper elevation={3} square> <Toolbar> - <IconButton size="large" onClick={() => navigate('/')}> + <IconButton onClick={() => navigate('/')}> <ArrowBackIcon /> </IconButton> <Typography variant="h6" className={classes.title}>{t('reportReplay')}</Typography> {!expanded && ( <Grid item> - <IconButton size="large" onClick={() => setExpanded(true)}> + <IconButton onClick={() => setExpanded(true)}> <SettingsIcon /> </IconButton> </Grid> @@ -177,21 +177,13 @@ const ReplayPage = () => { /> <div className={classes.controls}> {`${index + 1}/${positions.length}`} - <IconButton - size="large" - onClick={() => setIndex((index) => index - 1)} - disabled={playing} - > + <IconButton onClick={() => setIndex((index) => index - 1)} disabled={playing}> <FastRewindIcon /> </IconButton> - <IconButton onClick={() => setPlaying(!playing)} size="large"> + <IconButton onClick={() => setPlaying(!playing)}> {playing ? <PauseIcon /> : <PlayArrowIcon /> } </IconButton> - <IconButton - size="large" - onClick={() => setIndex((index) => index + 1)} - disabled={playing} - > + <IconButton onClick={() => setIndex((index) => index + 1)} disabled={playing}> <FastForwardIcon /> </IconButton> {formatTime(positions[index].fixTime)} |