From ad2e58cd4396397b748278c4507cb4e5fc94ebaa Mon Sep 17 00:00:00 2001 From: Marliana Lara Date: Wed, 11 Sep 2019 11:03:00 -0400 Subject: [PATCH] Align the top of the modal to a fixed distance from the top of the browser --- .../client/features/output/host-event/host-event.service.js | 4 ++-- awx/ui_next/src/screens/Job/JobOutput/HostEventModal.jsx | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/awx/ui/client/features/output/host-event/host-event.service.js b/awx/ui/client/features/output/host-event/host-event.service.js index 4163cb2e95..4709c1055f 100644 --- a/awx/ui/client/features/output/host-event/host-event.service.js +++ b/awx/ui/client/features/output/host-event/host-event.service.js @@ -67,8 +67,8 @@ function HostEventService ( obj.status = 'failed'; } if (event.event === 'runner_on_ok' || event.event === 'runner_on_async_ok') { - obj.class = 'HostEvent-status--ok'; - obj.status = 'ok'; + obj.class = 'HostEvent-status--ok'; + obj.status = 'ok'; } // if both 'changed' and 'ok' are true, show 'changed' status if (event.changed) { diff --git a/awx/ui_next/src/screens/Job/JobOutput/HostEventModal.jsx b/awx/ui_next/src/screens/Job/JobOutput/HostEventModal.jsx index 79aa92a560..08e3866983 100644 --- a/awx/ui_next/src/screens/Job/JobOutput/HostEventModal.jsx +++ b/awx/ui_next/src/screens/Job/JobOutput/HostEventModal.jsx @@ -19,6 +19,8 @@ const entities = new Entities.AllHtmlEntities(); const Modal = styled(PFModal)` --pf-c-modal-box__footer--MarginTop: 0; + align-self: flex-start; + margin-top: 200px; .pf-c-modal-box__body { overflow-y: hidden; }