Merge pull request #1400 from danielyxie/dev

fixed log boxes
This commit is contained in:
hydroflame 2021-10-01 22:32:10 -04:00 committed by GitHub
commit f5e5319eac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 12 deletions

@ -39,11 +39,13 @@
<style> <style>
body { body {
background-color: black; background-color: black;
}
* {
-ms-overflow-style: none; /* for Internet Explorer, Edge */ -ms-overflow-style: none; /* for Internet Explorer, Edge */
scrollbar-width: none; /* for Firefox */ scrollbar-width: none; /* for Firefox */
} }
body::-webkit-scrollbar { *::-webkit-scrollbar {
display: none; /* for Chrome, Safari, and Opera */ display: none; /* for Chrome, Safari, and Opera */
} }
</style> </style>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -39,11 +39,13 @@
<style> <style>
body { body {
background-color: black; background-color: black;
}
* {
-ms-overflow-style: none; /* for Internet Explorer, Edge */ -ms-overflow-style: none; /* for Internet Explorer, Edge */
scrollbar-width: none; /* for Firefox */ scrollbar-width: none; /* for Firefox */
} }
body::-webkit-scrollbar { *::-webkit-scrollbar {
display: none; /* for Chrome, Safari, and Opera */ display: none; /* for Chrome, Safari, and Opera */
} }
</style> </style>

@ -147,14 +147,16 @@ function LogWindow(props: IProps): React.ReactElement {
</Box> </Box>
</Paper> </Paper>
<Paper> <Paper>
{props.script.logs.map( <Box maxHeight="25vh" overflow="scroll">
(line: string, i: number): JSX.Element => ( {props.script.logs.map(
<Typography key={i} style={{ whiteSpace: "pre-line" }}> (line: string, i: number): JSX.Element => (
{line} <Typography key={i} style={{ whiteSpace: "pre-line" }}>
<br /> {line}
</Typography> <br />
), </Typography>
)} ),
)}
</Box>
</Paper> </Paper>
</Paper> </Paper>
); );