Skip to content

add safe-area inset support to generateFadeInFromTop default offset #15

@garychien

Description

@garychien

Describe the need of your request

generateFadeInFromTop currently uses a fixed 40px offset, which doesn’t account for viewport-fit=cover safe areas in PWA; adding env(safe-area-inset-top) prevents content from overlapping the notch.

Proposed solution

set the default toY of generateFadeInFromTop to calc(40px + env(safe-area-inset-top)) so the animation respects PWA safe-area insets while keeping the option to override the value.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions