I'm facing an issue with a layout that should fit perfectly within the viewport without exceeding its height. Everything looks good on desktop browsers like Chrome, Safari, and Firefox, but when I switch to iOS Chrome/Safari (and possibly Android as well), the content extends beyond the viewport, requiring scrolling. This seems to be caused by the address bars taking up some space.
This problem occurs with two specific elements:
- The main content area, which is set to
100vh
, causing scrolls. - A fixed bar on the left side of the page, which shouldn't scroll at all. However, the logo ends up outside the visible area at the top of the page, indicating that it exceeds the browser's height. The width of this bar is also set to
100vh
since it's rotated 90 degrees.
I've tried looking into older articles for solutions, but nothing has worked so far. You can find the code attached below, and I've also created a Codepen for easier viewing on mobile: https://codepen.io/moy/pen/popxXXe