As I work on my Next.js project, I've noticed an issue with unwanted horizontal scrollbars appearing on every subpage. These scrollbars allow scrolling about 30px horizontally, but only appear when the content extends beyond the viewport. I attempted to resolve this by setting overflow: hidden
on the div
within the Layout
component, but it seems like the problem lies higher up in the hierarchy. Additionally, trying to set the overflow
property to html, body
in the CSS resulted in blocking the sticky positioning of the header.
Any suggestions on how to tackle this issue?