PApostol commented on a change in pull request #20052:
URL: https://github.com/apache/airflow/pull/20052#discussion_r765129326
##########
File path: airflow/www/static/js/trigger.js
##########
@@ -17,13 +17,14 @@
* under the License.
*/
-/* global document, CodeMirror */
+/* global document, CodeMirror, window */
const textArea = document.getElementById('json');
+const height = window.innerHeight * 0.6;
Review comment:
Perhaps something like the below?
> const minHeight = 300;
const maxHeight = window.innerHeight - 450;
const height = maxHeight > minHeight ? maxHeight : minHeight;
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]