From 662ff41fe9c9efda452e463b69448566f47f4bd7 Mon Sep 17 00:00:00 2001 From: mabashian Date: Fri, 24 Jan 2020 09:27:26 -0500 Subject: [PATCH] Moves inline css to styled component in WorkflowOutputToolbar --- .../WorkflowOutput/WorkflowOutputToolbar.jsx | 37 +++++++++++++++---- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/awx/ui_next/src/screens/Job/WorkflowOutput/WorkflowOutputToolbar.jsx b/awx/ui_next/src/screens/Job/WorkflowOutput/WorkflowOutputToolbar.jsx index c3f0350796..d3a93d2578 100644 --- a/awx/ui_next/src/screens/Job/WorkflowOutput/WorkflowOutputToolbar.jsx +++ b/awx/ui_next/src/screens/Job/WorkflowOutput/WorkflowOutputToolbar.jsx @@ -8,6 +8,25 @@ import { StatusIcon } from '@components/Sparkline'; import VerticalSeparator from '@components/VerticalSeparator'; import styled from 'styled-components'; +const Toolbar = styled.div` + align-items: center + border-bottom: 1px solid grey; + display: flex; + height: 56px; +`; + +const ToolbarJob = styled.div` + align-items: center; + display: flex; +`; + +const ToolbarActions = styled.div` + align-items: center; + display: flex; + flex: 1; + justify-content: flex-end; +`; + const Badge = styled(PFBadge)` align-items: center; display: flex; @@ -30,6 +49,10 @@ const ActionButton = styled(Button)` } `; +const StatusIconWithMargin = styled(StatusIcon)` + margin-right: 20px; +`; + function WorkflowOutputToolbar({ i18n, job, @@ -42,12 +65,12 @@ function WorkflowOutputToolbar({ const totalNodes = nodes.reduce((n, node) => n + !node.isDeleted, 0) - 1; return ( -
-
- + + + {job.name} -
-
+ +
{i18n._(t`Total Nodes`)}
{totalNodes} @@ -69,8 +92,8 @@ function WorkflowOutputToolbar({ -
-
+ + ); }