Skip to content

Commit c878c91

Browse files
committed
Fix width on mobile phones
1 parent a3fba1d commit c878c91

File tree

1 file changed

+2
-3
lines changed
  • packages/react-renderer-demo/src/app/src/components

1 file changed

+2
-3
lines changed

packages/react-renderer-demo/src/app/src/components/layout.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,14 @@ export const drawerWidth = 240;
3131
const useStyles = makeStyles((theme) => ({
3232
mainGradient: {
3333
backgroundImage: 'linear-gradient(135deg, #41108E 0%, rgba(165, 37, 193, 1) 44.76%, #FC9957 100%)',
34-
backgroundSize: '100vw 100vh',
34+
backgroundSize: '100% 100vh',
3535
backgroundRepeat: 'no-repeat',
3636
transition: theme.transitions.create(['margin', 'width'], {
3737
easing: theme.transitions.easing.easeOut,
3838
duration: theme.transitions.duration.enteringScreen
3939
})
4040
},
4141
mainGradientShift: {
42-
width: `calc(100vw - ${drawerWidth}px)`,
4342
transition: theme.transitions.create(['margin', 'width'], {
4443
easing: theme.transitions.easing.sharp,
4544
duration: theme.transitions.duration.leavingScreen
@@ -101,7 +100,7 @@ const useStyles = makeStyles((theme) => ({
101100
right: 0,
102101
width: '100%',
103102
backgroundImage: 'linear-gradient(135deg, #41108E 0%, rgba(165, 37, 193, 1) 44.76%, #FC9957 100%)',
104-
backgroundSize: '100vw 100vh',
103+
backgroundSize: '100% 100vh',
105104
backgroundRepeat: 'no-repeat',
106105
zIndex: 900
107106
},

0 commit comments

Comments
 (0)