File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
src/components/user-info-alert Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,18 @@ const COOKIE_NAME = "ACCEPT_GLOBO_HACKTOBERFEST_LGPD"
1212const COOKIE_EXPIRATION = 330
1313
1414const 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 >
You can’t perform that action at this time.
0 commit comments