mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
FIX: Adjust composer size for iPhone Xs Max and Xʀ
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user