mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00: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.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…
x
Reference in New Issue
Block a user