My app was working fine and suddenly I'm able to scroll to the right further than the content, as well as scrolling down past the content.
My App.js:
function App() {
return (
<div className='app'>
<Header />
<Main />
</div>
);
}
My index.js
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<BrowserRouter>
<App />
</BrowserRouter>
);
My index.scss:
body {
margin: 0;
font-family: "Inconsolata", monospace;
background-color: $dark-gray;
height: 100%;
line-height: 125%;
overflow: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace;
}
My App.scss is empty.
Anyways, I have no clue why I can suddenly scroll further down than the content and further to the right. Any help would be appreciated greatly.