From 053625d3e7d95abc91edf4346d5db3aad440c412 Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Thu, 23 Jun 2022 14:39:16 -0400 Subject: [PATCH] 19093: Use paper instead of expansionpanel for process retry warning Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- .../process-runtime-status.tsx | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/views-components/process-runtime-status/process-runtime-status.tsx b/src/views-components/process-runtime-status/process-runtime-status.tsx index 41a0ae05..3b5fae36 100644 --- a/src/views-components/process-runtime-status/process-runtime-status.tsx +++ b/src/views-components/process-runtime-status/process-runtime-status.tsx @@ -7,6 +7,7 @@ import { ExpansionPanel, ExpansionPanelDetails, ExpansionPanelSummary, + Paper, StyleRulesCallback, Typography, withStyles, @@ -27,7 +28,7 @@ type CssRules = 'root' | 'errorColor' | 'warning' | 'warningColor' - | 'disabledPanelSummary'; + | 'paperRoot'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ root: { @@ -66,10 +67,11 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ warningColor: { color: theme.customs.colors.yellow900, }, - disabledPanelSummary: { - cursor: 'default', - pointerEvents: 'none', - } + paperRoot: { + minHeight: theme.spacing.unit * 6, + display: 'flex', + alignItems: 'center', + }, }); export interface ProcessRuntimeStatusDataProps { runtimeStatus: RuntimeStatus | undefined; @@ -110,13 +112,13 @@ export const ProcessRuntimeStatus = withStyles(styles)( } { containerCount > 1 && -
- - +
+ + {`Warning: Process retried ${containerCount - 1} time${containerCount > 2 ? 's' : ''} due to failure.`} - -
+ +
} }); -- 2.30.2