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>
body {
background-color: black;
}
* {
-ms-overflow-style: none; /* for Internet Explorer, Edge */
scrollbar-width: none; /* for Firefox */
}
body::-webkit-scrollbar {
*::-webkit-scrollbar {
display: none; /* for Chrome, Safari, and Opera */
}
</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>
body {
background-color: black;
}
* {
-ms-overflow-style: none; /* for Internet Explorer, Edge */
scrollbar-width: none; /* for Firefox */
}
body::-webkit-scrollbar {
*::-webkit-scrollbar {
display: none; /* for Chrome, Safari, and Opera */
}
</style>

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