aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2021-12-12 20:45:05 -0600
committerIván Ávalos <avalos@disroot.org>2021-12-12 20:45:05 -0600
commit9b1a369f7e637471ad945642b3f90135e7d03d9d (patch)
treed9a0ed56ec26ee0412235bace9adfd5a50860e52 /modern
parentd7edd918d1435384e2b51d8f3ce8fb61aa7e7e01 (diff)
downloadetbsa-traccar-web-9b1a369f7e637471ad945642b3f90135e7d03d9d.tar.gz
etbsa-traccar-web-9b1a369f7e637471ad945642b3f90135e7d03d9d.tar.bz2
etbsa-traccar-web-9b1a369f7e637471ad945642b3f90135e7d03d9d.zip
Removed sidebar and attribution (sorry, I didn't want to) from login page
Diffstat (limited to 'modern')
-rw-r--r--modern/src/StartPage.js7
-rw-r--r--modern/src/components/BottomMenu.js1
-rw-r--r--modern/src/components/registration/LoginForm.js13
3 files changed, 10 insertions, 11 deletions
diff --git a/modern/src/StartPage.js b/modern/src/StartPage.js
index 1e204c2..91b93c7 100644
--- a/modern/src/StartPage.js
+++ b/modern/src/StartPage.js
@@ -18,7 +18,7 @@ const useStyles = makeStyles((theme) => ({
[theme.breakpoints.down('md')]: {
width: theme.dimensions.sidebarWidthTablet,
},
- [theme.breakpoints.down('xs')]: {
+ [theme.breakpoints.down('xl')]: {
width: '0px',
},
},
@@ -29,7 +29,7 @@ const useStyles = makeStyles((theme) => ({
alignItems: 'center',
flex: 1,
boxShadow: '-2px 0px 16px rgba(0, 0, 0, 0.25)',
- [theme.breakpoints.up('lg')]: {
+ [theme.breakpoints.up('xl')]: {
padding: theme.spacing(0, 25, 0, 0),
},
},
@@ -43,6 +43,7 @@ const useStyles = makeStyles((theme) => ({
bottom: theme.spacing(1),
right: theme.spacing(1.5),
fontSize: 'x-small',
+ display: 'none',
},
}));
@@ -54,7 +55,7 @@ const StartPage = ({ children }) => {
<>
<main className={classes.root}>
<div className={classes.sidebar}>
- {!useMediaQuery(theme.breakpoints.down('md'))
+ {!useMediaQuery(theme.breakpoints.down('xl'))
&& (
<svg height="64" width="240">
<use xlinkHref="/logo.svg#img" />
diff --git a/modern/src/components/BottomMenu.js b/modern/src/components/BottomMenu.js
index 7ce83e5..4d5d4ea 100644
--- a/modern/src/components/BottomMenu.js
+++ b/modern/src/components/BottomMenu.js
@@ -50,6 +50,7 @@ const BottomMenu = () => {
await fetch('/api/session', { method: 'DELETE' });
history.push('/login');
dispatch(sessionActions.updateUser(null));
+ window.location.reload();
break;
default:
break;
diff --git a/modern/src/components/registration/LoginForm.js b/modern/src/components/registration/LoginForm.js
index bbb5d5f..20d36bc 100644
--- a/modern/src/components/registration/LoginForm.js
+++ b/modern/src/components/registration/LoginForm.js
@@ -63,14 +63,11 @@ const LoginForm = () => {
return (
<StartPage>
<Grid container direction="column" spacing={2}>
- {useMediaQuery(theme.breakpoints.down('md'))
- && (
- <Grid item className={classes.logoContainer}>
- <svg height="64" width="240">
- <use xlinkHref="/logo.svg#img" />
- </svg>
- </Grid>
- )}
+ <Grid item className={classes.logoContainer}>
+ <svg height="64" width="240">
+ <use xlinkHref="/logo.svg#img" />
+ </svg>
+ </Grid>
<Grid item>
<TextField
required