From e93453d8882428f0cfeda3f7692e843185b734c7 Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Wed, 20 Apr 2022 10:50:33 -0300 Subject: [PATCH] 19045: Respects also newlines on error/warning summaries. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- .../process-runtime-status/process-runtime-status.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 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 3c6b525d62..a2cd455c51 100644 --- a/src/views-components/process-runtime-status/process-runtime-status.tsx +++ b/src/views-components/process-runtime-status/process-runtime-status.tsx @@ -19,6 +19,7 @@ import classNames from 'classnames'; type CssRules = 'heading' | 'summary' + | 'summaryText' | 'details' | 'detailsText' | 'error' @@ -34,6 +35,9 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ paddingLeft: theme.spacing.unit * 1, paddingRight: theme.spacing.unit * 1, }, + summaryText: { + whiteSpace: 'pre-line', + }, details: { paddingLeft: theme.spacing.unit * 1, paddingRight: theme.spacing.unit * 1, @@ -69,7 +73,7 @@ export const ProcessRuntimeStatus = withStyles(styles)( return <> { runtimeStatus?.error &&
- }> + }> {`Error: ${runtimeStatus.error }`} @@ -83,7 +87,7 @@ export const ProcessRuntimeStatus = withStyles(styles)( } { runtimeStatus?.warning &&
- }> + }> {`Warning: ${runtimeStatus.warning }`} -- 2.30.2