feat(ui): click-to-copy on node values in jsonviewer

This commit is contained in:
2026-05-04 14:12:17 +02:00
parent 3ee074b11c
commit 6d5cac65e8
+5 -1
View File
@@ -88,7 +88,11 @@
class:bg-layer-3={flashing} class:bg-layer-3={flashing}
> >
{#if key !== undefined} {#if key !== undefined}
<span class="text-text">{key}</span><span class="text-text/40">: </span> <button
class="text-text hover:bg-layer-3 cursor-pointer"
title="Copy value"
onclick={() => navigator.clipboard.writeText(JSON.stringify({[key]: value}, null, 2))}
>{key}</button><span class="text-text/40">: </span>
{/if} {/if}
{#if isExpandable} {#if isExpandable}