Skip to content

Commit

Permalink
fix memory view wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
voliva committed Jul 13, 2024
1 parent 70bca58 commit 57b2117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/ProgramRunner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ const StackView: FC<{ stack: bigint[] }> = ({ stack }) => {
return (
<div className="flex flex-col flex-1">
<h2 className="font-bold border-b">Stack view</h2>
<ol className="overflow-auto font-mono">
<ol className="overflow-auto font-mono whitespace-nowrap">
{stack.map((value, idx) => (
<li key={idx}>
{idx}: {memoryValueToString(value)}
Expand All @@ -171,7 +171,7 @@ const HeapView: FC<{ heap: bigint[] }> = ({ heap }) => {
return (
<div className="flex flex-col max-h-full flex-1">
<h2 className="font-bold border-b">Heap view</h2>
<ol className="overflow-auto font-mono">
<ol className="overflow-auto font-mono whitespace-nowrap">
{Object.entries(heap).map(([idx, value]) => (
<li key={idx}>
{idx}: {memoryValueToString(value)}
Expand Down

0 comments on commit 57b2117

Please sign in to comment.