From c971e9d61c1d277819644c24c6aca606c15cdcd3 Mon Sep 17 00:00:00 2001 From: mabashian Date: Fri, 24 Jan 2020 14:52:03 -0500 Subject: [PATCH] Turns all the workflow tool buttons in to pf button components. --- .../src/components/Workflow/WorkflowTools.jsx | 36 +++++++++++++------ 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/awx/ui_next/src/components/Workflow/WorkflowTools.jsx b/awx/ui_next/src/components/Workflow/WorkflowTools.jsx index 31ca802ee4..49a07f41fe 100644 --- a/awx/ui_next/src/components/Workflow/WorkflowTools.jsx +++ b/awx/ui_next/src/components/Workflow/WorkflowTools.jsx @@ -3,7 +3,7 @@ import { withI18n } from '@lingui/react'; import { t } from '@lingui/macro'; import styled from 'styled-components'; import { func, number } from 'prop-types'; -import { Tooltip } from '@patternfly/react-core'; +import { Button, Tooltip } from '@patternfly/react-core'; import { CaretDownIcon, CaretLeftIcon, @@ -19,7 +19,7 @@ import { const Wrapper = styled.div` background-color: white; border: 1px solid #c7c7c7; - height: 135px; + height: 215px; position: relative; `; @@ -87,10 +87,14 @@ function WorkflowTools({ content={i18n._(t`Fit the graph to the available screen size`)} position="bottom" > - onFitGraph()} css="margin-right: 30px;" /> + - zoomOut()} css="margin-right: 10px;" /> + - zoomIn()} css="margin: 0px 25px 0px 10px;" /> + - onPan('left')} /> + - onPan('up')} /> + - onPanToMiddle()} /> + - onPan('down')} /> + - onPan('right')} /> +