FIX: Adjust composer size for iPhone Xs Max and Xʀ

This commit is contained in:
Penar Musaraj 2019-09-03 12:47:00 -04:00
parent dc9110cc43
commit c468abe9d0

View File

@ -41,6 +41,11 @@ function calcHeight() {
withoutKeyboard = smallViewport ? 340 : 370;
}
// iPhone Xs Max and iPhone Xʀ
if (window.screen.height === 896) {
withoutKeyboard = smallViewport ? 410 : 440;
}
// iPad can use innerHeight cause it renders nothing in the footer
if (window.innerHeight > 920) {
withoutKeyboard -= 45;