diff options
author | Anton Tananaev <anton@traccar.org> | 2022-11-18 08:07:03 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-11-18 08:07:20 -0800 |
commit | 3006bf90fdc29338d241ceccb1239fa3014c840b (patch) | |
tree | be009e8bed69567953c91f3dc659b72b542dea70 /modern/src | |
parent | eaff9a2be1010fb56ac724e09b3ee45c3d0eb303 (diff) | |
download | trackermap-web-3006bf90fdc29338d241ceccb1239fa3014c840b.tar.gz trackermap-web-3006bf90fdc29338d241ceccb1239fa3014c840b.tar.bz2 trackermap-web-3006bf90fdc29338d241ceccb1239fa3014c840b.zip |
Fix remove toast position
Diffstat (limited to 'modern/src')
-rw-r--r-- | modern/src/common/components/RemoveDialog.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modern/src/common/components/RemoveDialog.js b/modern/src/common/components/RemoveDialog.js index 1af4e6a8..9a2a27fb 100644 --- a/modern/src/common/components/RemoveDialog.js +++ b/modern/src/common/components/RemoveDialog.js @@ -7,6 +7,11 @@ import { useCatch } from '../../reactHelper'; import { snackBarDurationLongMs } from '../util/duration'; const useStyles = makeStyles((theme) => ({ + root: { + [theme.breakpoints.down('md')]: { + bottom: `calc(${theme.dimensions.bottomBarHeight}px + ${theme.spacing(1)})`, + }, + }, button: { height: 'auto', marginTop: 0, @@ -32,6 +37,7 @@ const RemoveDialog = ({ return ( <Snackbar + className={classes.root} open={open} autoHideDuration={snackBarDurationLongMs} onClose={() => onResult(false)} |