diff --git a/plugins/scaffolder/src/components/JobStage/JobStage.tsx b/plugins/scaffolder/src/components/JobStage/JobStage.tsx index 68a9e8ead8..a73b434cd5 100644 --- a/plugins/scaffolder/src/components/JobStage/JobStage.tsx +++ b/plugins/scaffolder/src/components/JobStage/JobStage.tsx @@ -145,7 +145,11 @@ export const JobStage = ({ endedAt, startedAt, name, log, status }: Props) => { style={{ height: '20vh', width: '100%' }} onClick={toggleLogsFullScreen} > - + )} diff --git a/plugins/scaffolder/src/components/JobStage/LogModal.tsx b/plugins/scaffolder/src/components/JobStage/LogModal.tsx index 0eefad9b04..6c6c5b4ffd 100644 --- a/plugins/scaffolder/src/components/JobStage/LogModal.tsx +++ b/plugins/scaffolder/src/components/JobStage/LogModal.tsx @@ -20,6 +20,7 @@ import { DialogContent, IconButton, } from '@material-ui/core'; +import { makeStyles } from '@material-ui/core/styles'; import Close from '@material-ui/icons/Close'; import LazyLog from 'react-lazylog/build/LazyLog'; @@ -29,20 +30,39 @@ type Props = { onClose(): void; }; -export const LogModal: React.FC = ({ log, open = false, onClose }) => ( - - - Logs - - - - - -
- -
-
-
-); +const useStyles = makeStyles(theme => ({ + header: { + width: '100%', + padding: theme.spacing(1, 4), + }, + closeIcon: { + float: 'right', + padding: theme.spacing(0.5, 0), + }, + logs: { + boxShadow: '-3px -1px 7px 0px rgba(50, 50, 50, 0.59)', + height: '100%', + width: '100%', + }, +})); +export const LogModal: React.FC = ({ log, open = false, onClose }) => { + const classes = useStyles(); + + return ( + + + Logs + + + + + +
+ +
+
+
+ ); +}; export default LogModal;