tweak iOS composer heights a bit
This commit is contained in:
parent
c00ffabac3
commit
22fc761cc3
|
@ -14,7 +14,7 @@ export function isAppleDevice() {
|
|||
// available pixel of height for the editor
|
||||
function calcHeight(composingTopic) {
|
||||
const winHeight = window.innerHeight;
|
||||
const ratio = composingTopic ? 0.44 : 0.5;
|
||||
const ratio = composingTopic ? 0.45 : 0.48;
|
||||
const min = composingTopic ? 300 : 350;
|
||||
return Math.max(parseInt(winHeight*ratio), min);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue