From 9d76aaa7f959780465232366551c5f1e970d1752 Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Wed, 20 Apr 2022 11:29:21 -0300 Subject: [PATCH] 19045: Improves padding on several places. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- .../process-runtime-status/process-runtime-status.tsx | 10 +++++++--- src/views/process-panel/process-details-card.tsx | 4 +++- 2 files changed, 10 insertions(+), 4 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 a2cd455c..3858e49e 100644 --- a/src/views-components/process-runtime-status/process-runtime-status.tsx +++ b/src/views-components/process-runtime-status/process-runtime-status.tsx @@ -17,7 +17,8 @@ import { RuntimeStatus } from "models/runtime-status"; import { ArvadosTheme } from 'common/custom-theme'; import classNames from 'classnames'; -type CssRules = 'heading' +type CssRules = 'root' + | 'heading' | 'summary' | 'summaryText' | 'details' @@ -28,6 +29,9 @@ type CssRules = 'heading' | 'warningColor'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ + root: { + marginBottom: theme.spacing.unit * 1, + }, heading: { fontSize: '1rem', }, @@ -70,7 +74,7 @@ type ProcessRuntimeStatusProps = ProcessRuntimeStatusDataProps & WithStyles { - return <> + return
{ runtimeStatus?.error &&
}> @@ -99,5 +103,5 @@ export const ProcessRuntimeStatus = withStyles(styles)(
} - +
}); \ No newline at end of file diff --git a/src/views/process-panel/process-details-card.tsx b/src/views/process-panel/process-details-card.tsx index 21563c16..da6438a1 100644 --- a/src/views/process-panel/process-details-card.tsx +++ b/src/views/process-panel/process-details-card.tsx @@ -41,8 +41,10 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ paddingTop: theme.spacing.unit * 0.5 }, content: { + padding: theme.spacing.unit * 1.0, + paddingTop: theme.spacing.unit * 0.5, '&:last-child': { - paddingBottom: theme.spacing.unit * 2, + paddingBottom: theme.spacing.unit * 1, } }, title: { -- 2.30.2