fixed log boxes

This commit is contained in:
Olivier Gagnon
2021-10-01 22:31:58 -04:00
parent 447731c5f3
commit 665d25650a
5 changed files with 18 additions and 12 deletions
+10 -8
View File
@@ -147,14 +147,16 @@ function LogWindow(props: IProps): React.ReactElement {
</Box>
</Paper>
<Paper>
{props.script.logs.map(
(line: string, i: number): JSX.Element => (
<Typography key={i} style={{ whiteSpace: "pre-line" }}>
{line}
<br />
</Typography>
),
)}
<Box maxHeight="25vh" overflow="scroll">
{props.script.logs.map(
(line: string, i: number): JSX.Element => (
<Typography key={i} style={{ whiteSpace: "pre-line" }}>
{line}
<br />
</Typography>
),
)}
</Box>
</Paper>
</Paper>
);