nextjs-notion-starter-kit icon indicating copy to clipboard operation
nextjs-notion-starter-kit copied to clipboard

Removing vertical white bars within landscaping viewing on Safari iOS

Open si1k opened this issue 3 years ago • 1 comments

Description

Currently the starter has white vertical bars when viewed landscape on Safari on iPhones with a notch. This change expands the content window to include the notch in Safari when viewed in landscape yet not include the notch when viewed vertically or if installed as a PWA (so the header is not cut off when vertically viewed).

The additional meta tags, besides the viewport-fit=cover are default functionality; however, including them protects the PWA in the case viewport-fit=cover becomes no longer supported. If using transparent-black the header is cut off so I used black though default works as well.

Tested on iPhone 12 Pro Max.

Figure 1 - BEFORE: IMG_6394

Figure 2 - AFTER: IMG_6393

Notion Test Page ID

https://alexchaveriat-l3qqg3dvy-si1k.vercel.app/

si1k avatar Jun 10 '22 17:06 si1k

@si1k is attempting to deploy a commit to the Saasify Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Jun 10 '22 17:06 vercel[bot]

Thanks @si1k 🙏

transitive-bullshit avatar Dec 17 '23 05:12 transitive-bullshit