fix overflow for long output lines

This commit is contained in:
Xuan Son Nguyen 2025-02-08 14:41:20 +01:00
parent be22b41fe3
commit fbf2853f54
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View file

@ -74,7 +74,7 @@ export default function CanvasPyInterpreter() {
<div className="card bg-base-200 w-full h-full shadow-xl"> <div className="card bg-base-200 w-full h-full shadow-xl">
<div className="card-body"> <div className="card-body">
<div className="flex justify-between items-center mb-4"> <div className="flex justify-between items-center mb-4">
<span className="text-lg font-bold">Pyodide</span> <span className="text-lg font-bold">Python Interpreter</span>
<XCloseButton <XCloseButton
className="bg-base-100" className="bg-base-100"
onClick={() => setCanvasData(null)} onClick={() => setCanvasData(null)}
@ -102,7 +102,7 @@ export default function CanvasPyInterpreter() {
{running ? 'Running...' : 'Run'} {running ? 'Running...' : 'Run'}
</button> </button>
</div> </div>
<pre className="bg-slate-900 rounded-md grow text-gray-200 p-3"> <pre className="bg-slate-900 rounded-md grow text-gray-200 p-3 whitespace-pre-wrap overflow-auto">
{output} {output}
</pre> </pre>
</div> </div>