feat: add deubg menu to users
This commit is contained in:
1 parent
6516e99fe0
commit
8aa62b046e
4 files changed
+40
-8
No files matched your search
@@ -40,7 +40,11 @@ flex flex-col items-center justify-center bg-black/50 backdrop-blur-sm box-borde
|
||||
<h1 class="font-bold text-2xl w-max max-w-full">
|
||||
<slot name="title" />
|
||||
</h1>
|
||||
<Button class="!p-2 ml-auto" on:click={() => (open = false)}>
|
||||
<Button
|
||||
size="square-md"
|
||||
class="ml-auto"
|
||||
on:click={() => (open = false)}
|
||||
>
|
||||
<Icon src={XMark} mini size="16" />
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
</script>
|
||||
|
||||
<Modal bind:open>
|
||||
<span slot="title">Debug</span>
|
||||
<span slot="title"><slot name="title">Debug</slot></span>
|
||||
<DebugTree {object} isParent={true} />
|
||||
</Modal>
|
||||
@@ -12,13 +12,8 @@
|
||||
{#if typeof object[key] === 'object'}
|
||||
<svelte:self object={object[key]} isParent={false} />
|
||||
{:else}
|
||||
<pre>{object[key]}</pre>
|
||||
<pre class="break-words">{object[key]}</pre>
|
||||
{/if}
|
||||
</details>
|
||||
{/each}
|
||||
</ul>
|
||||
|
||||
<style>
|
||||
details {
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user