From ee41ec78aba231c7e160affc251ac86db83f352c Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Mon, 10 Aug 2015 15:21:10 -0400 Subject: [PATCH] fixed alignment of download standard out button in modals --- awx/ui/client/src/helpers/LogViewer.js | 4 +++- awx/ui/client/src/partials/eventviewer.html | 4 ++-- awx/ui/client/src/partials/logviewer.html | 4 ++-- awx/ui/client/src/shared/download-standard-out.block.less | 5 +++++ 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/awx/ui/client/src/helpers/LogViewer.js b/awx/ui/client/src/helpers/LogViewer.js index e098e782dd..bc2f7e6835 100644 --- a/awx/ui/client/src/helpers/LogViewer.js +++ b/awx/ui/client/src/helpers/LogViewer.js @@ -366,8 +366,10 @@ export default html = ""; if (params.standardOut) { html += 'Download'; + html += "
" + val + "
\n"; + } else { + html += "
" + val + "
\n"; } - html += "
" + val + "
\n"; $('#' + id).empty().html(html); }; }]) diff --git a/awx/ui/client/src/partials/eventviewer.html b/awx/ui/client/src/partials/eventviewer.html index 54302fc9d1..941e9d80d6 100644 --- a/awx/ui/client/src/partials/eventviewer.html +++ b/awx/ui/client/src/partials/eventviewer.html @@ -1,4 +1,4 @@ - - \ No newline at end of file + diff --git a/awx/ui/client/src/partials/logviewer.html b/awx/ui/client/src/partials/logviewer.html index 2fafebf3f7..ff6288d2db 100644 --- a/awx/ui/client/src/partials/logviewer.html +++ b/awx/ui/client/src/partials/logviewer.html @@ -1,5 +1,5 @@ - - \ No newline at end of file + diff --git a/awx/ui/client/src/shared/download-standard-out.block.less b/awx/ui/client/src/shared/download-standard-out.block.less index 984fe1b2e3..7b8c2e9ec4 100644 --- a/awx/ui/client/src/shared/download-standard-out.block.less +++ b/awx/ui/client/src/shared/download-standard-out.block.less @@ -12,6 +12,7 @@ .DownloadStandardOut--onModal { margin-bottom: 10px; + float: right; } .DownloadStandardOut-icon { @@ -21,3 +22,7 @@ .DownloadStandardOut-icon--withText { margin-right: 5px; } + +.DownloadStandardOut-pre { + width: 100%; +}