Skip to content

Commit f7c0eb5

Browse files
committed
Add horizontal scroll bars if log is too wide
1 parent 070bc74 commit f7c0eb5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/LogPanel.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ function LogPanel(props) {
3838
</AccordionSummary>
3939
<AccordionDetails>
4040
<Typography variant="caption">
41-
{log.length > 0 ? <pre>{log}</pre> : "Log not available"}
41+
{log.length > 0 ? (
42+
<pre style={{ overflow: "auto", paddingBottom: "12px" }}>{log}</pre>
43+
) : (
44+
"Log not available"
45+
)}
4246
</Typography>
4347
</AccordionDetails>
4448
</Accordion>

0 commit comments

Comments
 (0)