improve rendering for string results

This commit is contained in:
Ruben Fiszel
2023-08-20 12:17:19 +02:00
parent 632cb5dff1
commit a2fe6c56e0
@@ -279,7 +279,7 @@
JSON is too large to be displayed in full.
</div>
<ObjectViewer json={result} />
{:else if typeof result == 'string'}
{:else if typeof result == 'string' && result.length > 0}
<pre class="text-sm">{result}</pre>
<div class="flex">
<Button on:click={() => copyToClipboard(result)} color="light" size="xs">
@@ -320,7 +320,7 @@
>
JSON is too large to be displayed in full.
</div>
{:else if typeof result == 'string'}
{:else if typeof result == 'string' && result.length > 0}
<pre class="text-sm">{result}</pre>
<div class="flex">
<Button on:click={() => copyToClipboard(result)} color="light" size="xs">