Skip to content

Commit

Permalink
Now wraps response lines if they're too long for container
Browse files Browse the repository at this point in the history
  • Loading branch information
iway1 committed Feb 1, 2023
1 parent 445bc69 commit 7b6ff1e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import React from "react";
import { FormSection } from "./FormSection";

export function Response({ children }: { children: string }) {
return (
<FormSection title="Response">
<p className="whitespace-pre font-mono">{children}</p>
</FormSection>
);
return (
<FormSection title="Response">
<p className="font-mono whitespace-pre-wrap break-words">{children}</p>
</FormSection>
);
}

0 comments on commit 7b6ff1e

Please sign in to comment.