Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

takumi3488
Copy link
Contributor

Description

This PR fixes the issue where the menu button and sidebar content were hidden behind the iOS status bar when the app is installed as a PWA on iPhone.

Changes Made

  • Added PWA detection logic using JavaScript to reliably detect standalone mode
  • Applied dynamic padding to header and sidebar components in PWA mode
  • Updated viewport meta tag configuration for better iOS compatibility
  • Changed apple-mobile-web-app-status-bar-style to black-translucent
  • Added CSS variables for safe area insets with fallback support for older iOS versions

Screenshots

Before

before

After

after

Note on Visual Appearance

The menu button may appear to have excessive padding in screenshots or simulators. However, on actual iPhone devices with rounded corners and notch/Dynamic Island, this padding provides the optimal spacing from the status bar area. The positioning has been tested on physical devices and confirmed to provide the best user experience.

Testing

  • ✅ Tested on iPhone as PWA
  • ✅ Tested on regular mobile browser
  • ✅ Tested on desktop browser

takumi3488 and others added 3 commits September 1, 2025 00:55
- Add PWA detection logic to App.jsx
- Apply dynamic padding to header and sidebar in PWA mode
- Update viewport meta tag for better iOS compatibility
- Change status bar style to black-translucent for PWA
- Add CSS variables for safe area insets with fallback support

This ensures menu button and sidebar content are properly visible
below the iOS status bar when installed as a PWA.
@viper151 viper151 merged commit 3ff1db0 into siteboon:main Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants