From: Lucas Di Pentima Date: Wed, 20 Apr 2022 14:29:21 +0000 (-0300) Subject: 19045: Improves padding on several places. X-Git-Tag: 2.4.1~1^2~7^2 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/9d76aaa7f959780465232366551c5f1e970d1752 19045: Improves padding on several places. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- 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: {