mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: add minimum height for zoomed composer on mobile
This commit is contained in:
parent
994063ac72
commit
ea46e5dd57
@ -73,7 +73,8 @@ function positioningWorkaround($fixedElement) {
|
|||||||
|
|
||||||
fixedElement.style.top = '0px';
|
fixedElement.style.top = '0px';
|
||||||
|
|
||||||
fixedElement.style.height = parseInt(window.innerHeight*0.6) + "px";
|
const height = Math.max(parseInt(window.innerHeight*0.6), 350);
|
||||||
|
fixedElement.style.height = height + "px";
|
||||||
|
|
||||||
// I used to do this, but it seems like we don't need to with position
|
// I used to do this, but it seems like we don't need to with position
|
||||||
// fixed
|
// fixed
|
||||||
|
Loading…
Reference in New Issue
Block a user