improve ObjectViewer brackets & arg info height

This commit is contained in:
Ruben Fiszel
2024-11-07 19:03:34 +01:00
parent d35d2ccfd0
commit dbcf030e7b
2 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -98,7 +98,7 @@
}}><Expand size={18} /></button
>
{/if}
<div class="max-h-40 overflow-auto">
<div class="max-h-60 overflow-auto">
<ObjectViewer collapsed={false} topBrackets={true} pureViewer={true} json={value} />
</div>
</div>
@@ -94,8 +94,12 @@
>-</Button
>
{/if}
{#if level == 0 && topBrackets}<span class="h-0">{openBracket}</span>{/if}
<ul class={`w-full ${level === 0 ? 'border-none' : 'pl-2 border-l border-dotted'}`}>
{#if level == 0 && topBrackets}<span class="text-tertiary">{openBracket}</span>{/if}
<ul
class={`w-full ${
level === 0 ? `border-none ${topBrackets ? 'pl-2' : ''}` : 'pl-2 border-l border-dotted'
}`}
>
{#each keys.length > keyLimit ? keys.slice(0, keyLimit) : keys as key, index (key)}
<li>
<Button
@@ -162,7 +166,7 @@
</ul>
{#if level == 0 && topBrackets}
<div class="flex">
<span class="h-0">{closeBracket}</span>
<span class="text-tertiary">{closeBracket}</span>
{#if getTypeAsString(json) === 's3object'}
<a
class="text-secondary underline font-semibold text-2xs whitespace-nowrap ml-1 w-fit"