mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 21:53:51 +08:00
FIX: Adjust composer size for iPhone Xs Max and Xʀ
This commit is contained in:
parent
dc9110cc43
commit
c468abe9d0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user