X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1eb14d76b64f0dda0df6c2d7ca3092b102a5ffc6..c276ce4c8dd3cf27ad6d17eca9af473f353fda55:/src/components/code-snippet/code-snippet.tsx diff --git a/src/components/code-snippet/code-snippet.tsx b/src/components/code-snippet/code-snippet.tsx index bf9b612885..b622210f00 100644 --- a/src/components/code-snippet/code-snippet.tsx +++ b/src/components/code-snippet/code-snippet.tsx @@ -12,7 +12,8 @@ const styles: StyleRulesCallback = (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)( { lines.map((line: string, index: number) => { - return {line}; + return {line}; }) }