Currently working on a frontend project using Next.js and Tailwind. Encountered an issue where there is extra space on screens with a width less than 500px.
For instance, if the screen width is 400px, there will be an additional 100px of deadspace. Similarly, at 350px screen width, there will be 150px of deadspace.
When the page loads on a smaller screen (< 500px), the full width, including both the rendered area and deadspace, is displayed.
Even after checking the layout and nesting, it seems that the root <html>
element itself is only 400px wide, as depicted in the screenshot below:
https://i.sstatic.net/jzLUy.jpg
You can view the live site here, and inspect the code using devtools.