Skip to content

Commit

Permalink
fix: responsiveness (#15)
Browse files Browse the repository at this point in the history
fix: spacing

Co-authored-by: Puria Nafisi Azizi <[email protected]>
  • Loading branch information
bbtgnn and puria authored Jul 29, 2024
1 parent 39d35da commit 355c6bc
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions src/components/dyne-slangroom-editor/dyne-slangroom-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,21 +275,27 @@ function AnsiRenderer(props: { text: string; className?: string }) {
function ZencodeErrorRenderer(props: { error: ZencodeRuntimeError }) {
const { error } = props;
return (
<div>
<Title name="trace" className="mb-1" />
<dyne-code-editor name="trace" content={error.trace.join('\n')}></dyne-code-editor>
<div class="space-y-4">
<div>
<Title name="trace" className="mb-2" />
<dyne-code-editor name="trace" content={error.trace.join('\n')}></dyne-code-editor>
</div>

<Title name="logs" className="mb-1" />
<dyne-code-editor name="logs" content={error.logs.join('\n')}></dyne-code-editor>
<div>
<Title name="logs" className="mb-2" />
<dyne-code-editor name="logs" content={error.logs.join('\n')}></dyne-code-editor>
</div>

<Title name="heap" className="mb-1" />
<dyne-code-editor
name="heap"
content={JSON.stringify(error.heap, null, 2)}
config={{
extensions: [json()],
}}
></dyne-code-editor>
<div>
<Title name="heap" className="mb-2" />
<dyne-code-editor
name="heap"
content={JSON.stringify(error.heap, null, 2)}
config={{
extensions: [json()],
}}
></dyne-code-editor>
</div>
</div>
);
}
Expand Down

0 comments on commit 355c6bc

Please sign in to comment.