Safe Area

You might say

My mobile bottom bar overlaps the iPhone home indicator, so tapping it often swipes me out of the app.

The inset region of a mobile screen that stays clear of notches, Dynamic Island, rounded corners, and the home indicator bar.Fixed bottom bars in mobile web apps, PWAs, or mini programs use env(safe-area-inset-bottom) so backgrounds extend to the screen edge while buttons remain above the home indicator. On the web, non-zero inset values require viewport-fit=cover in the viewport meta tag; hardcoding a fixed pixel offset breaks on phones with different notch or gesture-bar dimensions.
Know first
safe-area-insetviewport-fit=cover

You can say this to an AI Agent

Ready to paste into Cursor, Claude Code, or Codex
Structured AI Agent prompt

Add safe-area support to the fixed mobile header and bottom bar: ensure the viewport meta tag includes `viewport-fit=cover`, use `padding-bottom: calc(12px + env(safe-area-inset-bottom))` on the bottom bar, and apply left/right insets for landscape notches so backgrounds reach the edge while buttons stay clear. Verify in both portrait and landscape.

Want your Agent to translate plain-language UI ideas automatically?Install free VibeHub Skill →
Oil UI Pro. Push AI’s design skills to the limit. Usability, existing projects and stricter review.
Further reading