aboutsummaryrefslogtreecommitdiff
path: root/modern/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-23 08:49:58 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-23 08:49:58 -0700
commitb98137ab304e8068484926eb31b77bd727a6407d (patch)
treef2fb0c55e27652c1a6b831aad6e8ff46a3637832 /modern/src/main
parent145fd060b544ea7886c5b6b11b24fb3da9b93127 (diff)
downloadtrackermap-web-b98137ab304e8068484926eb31b77bd727a6407d.tar.gz
trackermap-web-b98137ab304e8068484926eb31b77bd727a6407d.tar.bz2
trackermap-web-b98137ab304e8068484926eb31b77bd727a6407d.zip
Use standard icon button size
Diffstat (limited to 'modern/src/main')
-rw-r--r--modern/src/main/MainPage.js10
-rw-r--r--modern/src/main/StatusCard.js7
2 files changed, 4 insertions, 13 deletions
diff --git a/modern/src/main/MainPage.js b/modern/src/main/MainPage.js
index 7235d1b4..059d7043 100644
--- a/modern/src/main/MainPage.js
+++ b/modern/src/main/MainPage.js
@@ -167,7 +167,7 @@ const MainPage = () => {
<Paper square elevation={3}>
<Toolbar className={classes.toolbar} disableGutters>
{!desktop && (
- <IconButton size="large" onClick={handleClose}>
+ <IconButton onClick={handleClose}>
<ArrowBackIcon />
</IconButton>
)}
@@ -179,15 +179,11 @@ const MainPage = () => {
onChange={(event) => setSearchKeyword(event.target.value)}
placeholder={t('sharedSearchDevices')}
/>
- <IconButton
- size="large"
- onClick={() => navigate('/settings/device')}
- disabled={deviceReadonly}
- >
+ <IconButton onClick={() => navigate('/settings/device')} disabled={deviceReadonly}>
<AddIcon />
</IconButton>
{desktop && (
- <IconButton size="large" onClick={handleClose}>
+ <IconButton onClick={handleClose}>
<CloseIcon />
</IconButton>
)}
diff --git a/modern/src/main/StatusCard.js b/modern/src/main/StatusCard.js
index 37e4a1d1..ec33efa2 100644
--- a/modern/src/main/StatusCard.js
+++ b/modern/src/main/StatusCard.js
@@ -115,7 +115,7 @@ const StatusCard = ({ deviceId, onClose }) => {
</Avatar>
)}
action={(
- <IconButton size="large" onClick={onClose}>
+ <IconButton onClick={onClose}>
<CloseIcon />
</IconButton>
)}
@@ -148,35 +148,30 @@ const StatusCard = ({ deviceId, onClose }) => {
<CardActions classes={{ root: classes.actions }} disableSpacing>
<IconButton
color="secondary"
- size="large"
onClick={() => navigate(`/position/${position.id}`)}
disabled={!position}
>
<PostAddIcon />
</IconButton>
<IconButton
- size="large"
onClick={() => navigate('/replay')}
disabled={!position}
>
<ReplayIcon />
</IconButton>
<IconButton
- size="large"
onClick={() => navigate(`/settings/command-send/${deviceId}`)}
disabled={readonly}
>
<PublishIcon />
</IconButton>
<IconButton
- size="large"
onClick={() => navigate(`/settings/device/${deviceId}`)}
disabled={deviceReadonly}
>
<EditIcon />
</IconButton>
<IconButton
- size="large"
onClick={() => setRemoving(true)}
disabled={deviceReadonly}
className={classes.negative}