[ARVADOS-WORKBENCH2] created: 2.4.0-35-g020ebbae

Git user git at public.arvados.org
Tue Apr 19 20:49:49 UTC 2022


        at  020ebbaeb17659f86d3480b7fc89146f8ce0d02e (commit)


commit 020ebbaeb17659f86d3480b7fc89146f8ce0d02e
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date:   Tue Apr 19 17:49:06 2022 -0300

    19045: Respects error & warning details newlines on display.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>

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 26e0459d..3c6b525d 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,14 @@ import { RuntimeStatus } from "models/runtime-status";
 import { ArvadosTheme } from 'common/custom-theme';
 import classNames from 'classnames';
 
-type CssRules = 'heading' | 'summary' | 'details' | 'error' | 'errorColor' | 'warning' | 'warningColor';
+type CssRules = 'heading'
+    | 'summary'
+    | 'details'
+    | 'detailsText'
+    | 'error'
+    | 'errorColor'
+    | 'warning'
+    | 'warningColor';
 
 const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
     heading: {
@@ -31,6 +38,12 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
         paddingLeft: theme.spacing.unit * 1,
         paddingRight: theme.spacing.unit * 1,
     },
+    detailsText: {
+        fontSize: '0.8rem',
+        marginTop: '0px',
+        marginBottom: '0px',
+        whiteSpace: 'pre-line',
+    },
     errorColor: {
         color: theme.customs.colors.red900,
     },
@@ -62,7 +75,7 @@ export const ProcessRuntimeStatus = withStyles(styles)(
                 </Typography>
             </ExpansionPanelSummary>
             <ExpansionPanelDetails className={classes.details}>
-                <Typography className={classes.errorColor}>
+                <Typography className={classNames(classes.errorColor, classes.detailsText)}>
                     {runtimeStatus?.errorDetail || 'No additional error details available'}
                 </Typography>
             </ExpansionPanelDetails>
@@ -76,7 +89,7 @@ export const ProcessRuntimeStatus = withStyles(styles)(
                 </Typography>
             </ExpansionPanelSummary>
             <ExpansionPanelDetails className={classes.details}>
-                <Typography className={classes.warningColor}>
+                <Typography className={classNames(classes.warningColor, classes.detailsText)}>
                     {runtimeStatus?.warningDetail || 'No additional warning details available'}
                 </Typography>
             </ExpansionPanelDetails>

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list