X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/08968efce07d609c16dd8a086bfd0a4d69ad6f3d..1ef4bffbfa4d05ae4356ef22b3964d6152310fb9:/src/views/process-log-panel/process-log-code-snippet.tsx diff --git a/src/views/process-log-panel/process-log-code-snippet.tsx b/src/views/process-log-panel/process-log-code-snippet.tsx index 99388d66..d1756c77 100644 --- a/src/views/process-log-panel/process-log-code-snippet.tsx +++ b/src/views/process-log-panel/process-log-code-snippet.tsx @@ -2,15 +2,23 @@ // // SPDX-License-Identifier: AGPL-3.0 -import * as React from 'react'; -import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles'; -import { CodeSnippet, CodeSnippetDataProps } from '~/components/code-snippet/code-snippet'; +import React from 'react'; +import { MuiThemeProvider, createMuiTheme, StyleRulesCallback, withStyles, WithStyles } from '@material-ui/core/styles'; +import { CodeSnippet } from 'components/code-snippet/code-snippet'; import grey from '@material-ui/core/colors/grey'; +type CssRules = 'codeSnippet'; + +const styles: StyleRulesCallback = () => ({ + codeSnippet: { + maxHeight: '550px', + } +}); + const theme = createMuiTheme({ overrides: { MuiTypography: { - body1: { + body2: { color: grey["200"] }, root: { @@ -19,13 +27,17 @@ const theme = createMuiTheme({ } }, typography: { - fontFamily: 'VT323' + fontFamily: 'monospace', + useNextVariants: true, } }); -type ProcessLogCodeSnippet = CodeSnippetDataProps; +interface ProcessLogCodeSnippetProps { + lines: string[]; +} -export const ProcessLogCodeSnippet = (props: ProcessLogCodeSnippet) => - - - ; \ No newline at end of file +export const ProcessLogCodeSnippet = withStyles(styles)( + (props: ProcessLogCodeSnippetProps & WithStyles) => + + + ); \ No newline at end of file