OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add cap-go/capgo-skills --skill safe-area-handling
Complete guide to handling safe areas in Capacitor apps for iPhone notch, Dynamic Island, home indicator, and Android cutouts. Covers CSS, JavaScript, and native solutions. Use this skill when users have layout issues on modern devices.
npx skills add cap-go/capgo-skills --skill safe-area-handling
Handle iPhone notch, Dynamic Island, home indicator, and Android cutouts properly.
Safe areas are the regions of the screen not obscured by:
| Inset | Description |
|---|---|
safe-area-inset-top | Notch/Dynamic Island/status bar |
safe-area-inset-bottom | Home indicator/navigation bar |
safe-area-inset-left | Left edge (landscape) |
safe-area-inset-right | Right edge (landscape) |
Important: viewport-fit=cover is required to access safe area insets.
Solution: Add viewport-fit and safe area padding
Solution: Add bottom safe area padding
Solution: Handle left/right insets
Solution: Use adjustResize and handle insets dynamically
Cause: Missing viewport-fit=cover
Solution: