diff --git a/frontend/src/Css.tsx b/frontend/src/Css.tsx index 068f09427ee..e9eaa3046a7 100644 --- a/frontend/src/Css.tsx +++ b/frontend/src/Css.tsx @@ -30,6 +30,7 @@ export const color = { graphBg: '#f5f5f5', hoverBg: '#eee', inactive: '#5F6368', + lowContrast: '#80868b', // Google grey 600 secondaryText: 'rgba(0, 0, 0, .88)', separator: '#e8e8e8', strong: '#212121', diff --git a/frontend/src/pages/PipelineDetails.tsx b/frontend/src/pages/PipelineDetails.tsx index 88cc6df9afb..d5d3e2f12be 100644 --- a/frontend/src/pages/PipelineDetails.tsx +++ b/frontend/src/pages/PipelineDetails.tsx @@ -23,9 +23,9 @@ import AddIcon from '@material-ui/icons/Add'; import Button from '@material-ui/core/Button'; import CircularProgress from '@material-ui/core/CircularProgress'; import CloseIcon from '@material-ui/icons/Close'; -import Collapse from '@material-ui/core/Collapse'; import DetailsTable from '../components/DetailsTable'; import Graph from '../components/Graph'; +import InfoIcon from '@material-ui/icons/InfoOutlined'; import MD2Tabs from '../atoms/MD2Tabs'; import Paper from '@material-ui/core/Paper'; import Resizable from 're-resizable'; @@ -78,6 +78,17 @@ const css = stylesheet({ fontSizeTitle: { fontSize: fontsize.title, }, + footer: { + background: color.graphBg, + display: 'flex', + padding: '0 0 20px 20px', + }, + infoSpan: { + color: color.lowContrast, + fontSize: fontsize.small, + lineHeight: '24px', + paddingLeft: 6, + }, nodeName: { flexGrow: 1, textAlign: 'center', @@ -94,11 +105,8 @@ const css = stylesheet({ zIndex: 2, }, summaryCard: { - backgroundColor: color.background, bottom: 20, left: 20, - maxHeight: 350, - overflow: 'auto', padding: 10, position: 'absolute', width: 500, @@ -192,23 +200,25 @@ class PipelineDetails extends Page<{}, PipelineDetailsState> {
{selectedTab === 0 &&
{this.state.graph &&
- -
-
- Summary + {summaryShown && ( + +
+
+ Summary +
+
- -
-
Uploaded on
{new Date(pipeline.created_at!).toLocaleString()}
Description
{pipeline.description}
-
- + + )} + this._selectNode(id)} /> + {
} +
+ {!summaryShown && ( + + )} + + Static pipeline graph +
{!this.state.graph && No graph to show}
} {selectedTab === 1 &&