Skip to content

Commit c3c41a2

Browse files
committed
Update Console.js
1 parent cc3b5dd commit c3c41a2

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

src/app/Console.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -41,26 +41,26 @@ const Console = observer(({ run }) => {
4141
}}
4242
>
4343
<div>
44-
{run.stdout && (
45-
<Box
46-
component="code"
47-
sx={{
48-
color: (theme) => theme.palette.console.contrastText,
49-
fontFamily: 'Consolas, "Liberation Mono", Menlo, Courier, monospace',
50-
fontSize: '12px',
51-
height: '100%',
52-
position: 'absolute',
53-
width: '100%',
54-
whiteSpace: 'pre-wrap',
55-
wordBreak: 'break-all',
56-
}}
57-
>
58-
{run.stdout}
59-
</Box>
60-
)}
6144
</div>
6245
</Box>
6346
return (
47+
{run.stdout && (
48+
<Box
49+
component="code"
50+
sx={{
51+
color: (theme) => theme.palette.console.contrastText,
52+
fontFamily: 'Consolas, "Liberation Mono", Menlo, Courier, monospace',
53+
fontSize: '12px',
54+
height: '100%',
55+
position: 'absolute',
56+
width: '100%',
57+
whiteSpace: 'pre-wrap',
58+
wordBreak: 'break-all',
59+
}}
60+
>
61+
{run.stdout}
62+
</Box>
63+
)}
6464
{run.stderr && (
6565
<Box
6666
component="code"

0 commit comments

Comments
 (0)