From 3c0a9cef7e0cd4f82aa4c1e6a45dbdf1a9843ea6 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sun, 20 Aug 2023 12:16:29 +0200 Subject: [PATCH] improve rendering for string result --- .../src/lib/components/DisplayResult.svelte | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/frontend/src/lib/components/DisplayResult.svelte b/frontend/src/lib/components/DisplayResult.svelte index ece57a43f0..80cfbe1415 100644 --- a/frontend/src/lib/components/DisplayResult.svelte +++ b/frontend/src/lib/components/DisplayResult.svelte @@ -279,15 +279,15 @@ JSON is too large to be displayed in full. + {:else if typeof result == 'string'} +
{result}
+
+ +
{:else} - - {#if typeof result == 'string'} -
- -
- {/if} + {/if} {/if} {:else} @@ -320,14 +320,15 @@ > JSON is too large to be displayed in full. - {:else} - FOO - - {#if typeof result == 'string'} + {:else if typeof result == 'string'} +
{result}
+
- {/if} +
+ {:else} + {/if}