refs #13828 Merge branch 'origin/13828-trash-view'
[arvados.git] / src / components / code-snippet / code-snippet.tsx
index bf9b6128859ac34d8a8425a916ae8d87e8875465..b622210f008eb1c95c43897c6f94e99560fa5cc2 100644 (file)
@@ -12,7 +12,8 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
     root: {
         boxSizing: 'border-box',
         width: '100%',
-        height: '550px',
+        height: 'auto',
+        maxHeight: '550px',
         overflow: 'scroll',
         padding: theme.spacing.unit
     }
@@ -29,7 +30,7 @@ export const CodeSnippet = withStyles(styles)(
         <Typography component="div" className={classes.root}>
             {
                 lines.map((line: string, index: number) => {
-                    return <Typography key={index} component="div">{line}</Typography>;
+                    return <Typography key={index} component="pre">{line}</Typography>;
                 })
             }
         </Typography>