Skip to content

Commit c6b8811

Browse files
committed
Fix scrolling on mobile
1 parent 09b55ed commit c6b8811

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/styles/root.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@ html[data-has-hero] .main-frame {
5353
overflow: hidden;
5454
}
5555

56+
/* fixes scrolling on phone */
57+
@media (max-width: 50rem) {
58+
html[data-has-hero] {
59+
overflow-y: auto;
60+
}
61+
html[data-has-hero] .main-frame {
62+
overflow-y: auto;
63+
}
64+
}
65+
5666
#banner-img {
5767
position: absolute;
5868
top: 0;

0 commit comments

Comments
 (0)