mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 04:01:29 -05:00
UX: add minimum height for zoomed composer on mobile
This commit is contained in:
parent
994063ac72
commit
ea46e5dd57
1 changed files with 2 additions and 1 deletions
|
@ -73,7 +73,8 @@ function positioningWorkaround($fixedElement) {
|
|||
|
||||
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
|
||||
// fixed
|
||||
|
|
Loading…
Reference in a new issue