Merge branch 'master' into 14097-make-a-copy-process
[arvados-workbench2.git] / src / components / code-snippet / code-snippet.tsx
index dda607cd898a54b5e7386de529b09a227545236c..eb0e709a9b0dfa572860e15b796b436e065b41e3 100644 (file)
@@ -14,7 +14,7 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
         width: '100%',
         height: 'auto',
         maxHeight: '550px',
-        overflow: 'scroll',
+        overflow: 'auto',
         padding: theme.spacing.unit
     }
 });
@@ -30,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>