Struggling with the formatting and spacing issues of a PWA application on IOS devices due to notches and navbar heights.
One specific problem is that a chat input with absolute positioning and bottom: 0
does not display properly in Safari because of the navbar height.
Take a look at these screenshots for reference:
https://i.stack.imgur.com/atMsi.png
https://i.stack.imgur.com/GWvfn.png
Here are the rules for the chat input:
.event-chat-input {
height: $event-chat-input-height;
box-shadow: $box-shadow-default;
position: absolute;
padding: 0;
bottom: 0;
right: 0;
left: 0;
}
I have tried using variables like
safe-area-inset-top, safe-area-inset-right, safe-area-inset-left, safe-area-inset-bottom
to adjust for notches, but it didn't resolve the issue as the main problem seems to be the Safari navbar rather than the iPhone X notch itself.
Has anyone else encountered this problem? What solutions would you recommend? Thank you!