From fa665e81e41cecde28c7cf84b3b2b8b7a376b3dc Mon Sep 17 00:00:00 2001 From: Keith Grant Date: Tue, 9 Apr 2019 09:30:58 -0400 Subject: [PATCH] don't obscure modal buttons when code mirror modal throws error --- awx/ui/client/lib/components/code-mirror/_index.less | 8 ++++++-- .../code-mirror/modal/code-mirror-modal.partial.html | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/awx/ui/client/lib/components/code-mirror/_index.less b/awx/ui/client/lib/components/code-mirror/_index.less index 7e6b6dfe83..6eeb936e79 100644 --- a/awx/ui/client/lib/components/code-mirror/_index.less +++ b/awx/ui/client/lib/components/code-mirror/_index.less @@ -68,6 +68,10 @@ height: 100%; } +.CodeMirror-modal .CodeMirror { + max-height: calc(~"100vh - 230px"); +} + .NetworkingExtraVars .CodeMirror{ overflow-x: hidden; } @@ -81,6 +85,6 @@ } .atCodeMirror-badge{ - display: initial; + display: initial; margin-right: 20px; -} \ No newline at end of file +} diff --git a/awx/ui/client/lib/components/code-mirror/modal/code-mirror-modal.partial.html b/awx/ui/client/lib/components/code-mirror/modal/code-mirror-modal.partial.html index 96d31dbd7d..b773412788 100644 --- a/awx/ui/client/lib/components/code-mirror/modal/code-mirror-modal.partial.html +++ b/awx/ui/client/lib/components/code-mirror/modal/code-mirror-modal.partial.html @@ -1,7 +1,7 @@