fix(frontend): Fix display for array of objects (#3051)

This commit is contained in:
Faton Ramadani
2024-01-21 15:38:55 +01:00
committed by GitHub
parent ab010ce4f3
commit 773e2d3103
@@ -356,10 +356,12 @@
{/each}
</div>
{:else if Array.isArray(value)}
<div class="flex flex-row gap-1 w-full max-w-80 flex-wrap min-w-80">
<div class="flex flex-row gap-1 w-full max-w-80 flex-wrap min-w-96">
{#each value as val}
<div class="p-2 bg-surface-secondary rounded-md text-2xs">
{JSON.stringify(val)}
<div
class="p-2 bg-surface-secondary rounded-md text-2xs max-w-96 text-wrap whitespace-pre-wrap flex flex-grow w-max overflow-hidden"
>
{JSON.stringify(val, null, 2)}
</div>
{/each}
</div>