Skip to content

Commit 1fa60db

Browse files
committed
Fix user info alert responsiveness
1 parent f365798 commit 1fa60db

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/components/user-info-alert/UserInfoAlert.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ const COOKIE_NAME = "ACCEPT_GLOBO_HACKTOBERFEST_LGPD"
1212
const COOKIE_EXPIRATION = 330
1313

1414
const useStyles = makeStyles((theme: Theme) => ({
15+
snackbarRoot: {
16+
[theme.breakpoints.down("lg")]: {
17+
left: "8px",
18+
right: "8px",
19+
display: "flex",
20+
zIndex: 1400,
21+
position: "fixed",
22+
alignItems: "center",
23+
justifyContent: "center",
24+
transform: "none",
25+
},
26+
},
1527
snackbar: {
1628
backgroundColor: theme.palette.background.paper,
1729
color: '#000',
@@ -32,6 +44,9 @@ const useStyles = makeStyles((theme: Theme) => ({
3244
justifyContent: "space-between",
3345
width: "100%",
3446
gap: "8px",
47+
[theme.breakpoints.down("sm")]: {
48+
flexFlow: "column",
49+
},
3550
},
3651
message: {
3752
flex: 1,
@@ -105,6 +120,7 @@ const UserInfoAlert = () => {
105120
return (
106121
!hideSnackbar ? (
107122
<Snackbar
123+
className={classes.snackbarRoot}
108124
anchorOrigin={{ vertical: "bottom", horizontal: "center" }}
109125
open
110126
>

0 commit comments

Comments
 (0)