Skip to content

Commit 0c63832

Browse files
committed
Fixed a horizontal scrollbar appearing on certain website pages
The use of `100vw` was causing horizontal scrollbars to appear on the home and 404 pages. Using 100% fixes that. Technically, block elements like <div> don't need a width key since they automatically expand to take up as much width as possible, but I kept the value at 100% here to matter match the original intent of the code.
1 parent cf809dd commit 0c63832

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

website/src/pages/404.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const styles = {
5656
color: 'white',
5757
padding: '2rem 0 4em',
5858
position: 'relative',
59-
width: '100vw',
59+
width: '100%',
6060
height: '100vh',
6161
overflow: 'hidden'
6262
},

website/src/pages/components/home/AdminInterface.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const styles = {
2626
backgroundColor: theme.color.lightBlue,
2727
textAlign: 'center',
2828
padding: '4rem 0',
29-
width: '100vw',
29+
width: '100%',
3030
overflow: 'hidden',
3131
},
3232
heading: {

website/src/pages/components/home/Hero.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const styles = {
9292
color: 'white',
9393
padding: '2rem 0 4em',
9494
position: 'relative',
95-
width: '100vw',
95+
width: '100%',
9696
overflow: 'hidden',
9797
},
9898
content: {

0 commit comments

Comments
 (0)