Skip to content

Commit

Permalink
fix: improve rendering of cids on narrow viewports
Browse files Browse the repository at this point in the history
  • Loading branch information
2color committed Feb 12, 2024
1 parent 32450e4 commit 277d818
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/helia-browser-verified-fetch/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function renderOutput(output: string | JSX.Element, err: string): JSX.Element {
if (err.length > 0) {
return (
<div className="bg-red-300">
<pre className="bg-black text-red-300 rounded p-4">{err}</pre>
<pre className="bg-black text-red-300 rounded p-4 whitespace-pre-wrap break-words">{err}</pre>
</div>
)
}
Expand All @@ -16,7 +16,7 @@ function renderOutput(output: string | JSX.Element, err: string): JSX.Element {
return (
<div className="bg-violet-300">
{output.length > 0 && (
<pre className="bg-black text-teal-300 rounded p-4">
<pre className="bg-black text-teal-300 rounded p-4 whitespace-pre-wrap break-words">
<code id="output" className="language-json">{`${output}`}</code>
</pre>
)}
Expand Down Expand Up @@ -221,7 +221,7 @@ function App(): JSX.Element {
🔑 Fetch auto
</button>

<pre className="bg-black text-teal-300 rounded p-4">{helpText}</pre>
<pre className="bg-black text-teal-300 rounded p-4 whitespace-pre-wrap break-words">{helpText}</pre>
</div>
{/* Left */}

Expand Down

0 comments on commit 277d818

Please sign in to comment.