Skip to content

Commit 520b721

Browse files
committed
Fixed scrolling overflow bug
1 parent 71e2f85 commit 520b721

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

components/common/Footer.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const LegalCopyright = styled.div`
5757
`
5858
const LegalLinks = styled.div`
5959
display: flex;
60+
flex-wrap: wrap;
6061
a {
6162
border-right: 1px solid #d2d2d7;
6263
margin-right: 7px;

styles/globals.css

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,21 @@ h6 {
4343

4444
html,
4545
body {
46+
width: 100%;
47+
overflow-x: hidden;
4648
padding: 0;
4749
margin: 0;
4850
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
4951
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
5052
}
5153

54+
html {
55+
height: 100%;
56+
}
57+
body {
58+
min-height: 100%;
59+
}
60+
5261
a {
5362
color: inherit;
5463
text-decoration: none;
@@ -81,10 +90,6 @@ html[data-color-scheme='dark'] {
8190
color: white;
8291
}
8392

84-
body {
85-
overflow-x: hidden;
86-
}
87-
8893
:root {
8994
--black: #000000;
9095
--white: #ffffff;

0 commit comments

Comments
 (0)