VibeDict

📱Bottom of the screen gets cut off on phones (100vh)

What you'll see
휴대폰에서 화면 아래가 잘려요 (100vh)

Because of the phone browser's address bar and bottom bar, the bottom of an area sized to the screen height (100vh) gets hidden.

🤔 Why does it happen?

  • A full screen was made with height: 100vh (on phones, this includes the address bar's height)
  • A button fixed at the bottom is hidden behind the iPhone home bar

🔧 Try this

  1. Use 100dvh (the visible height) instead of 100vh
  2. Add safe-area (home bar) spacing to buttons fixed at the bottom

🤖 Ask your AI like this

On phones, the bottom part (buttons) of a full-screen area is hidden behind the address bar and home bar. Please fix it by changing 100vh to 100dvh and adding safe-area spacing to elements fixed at the bottom.

Replace the [ ] parts with your own situation, and paste the error with a few extra lines before and after it.

Related terms

Other errors in this group