Skip to content

Commit e79feed

Browse files
committed
Highlight event JSON
1 parent 0958879 commit e79feed

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/Exceptionless.Web/ClientApp/src/lib/features/events/components/events-overview.svelte‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import CopyToClipboardButton from '$comp/copy-to-clipboard-button.svelte';
88
import DateTime from '$comp/formatters/date-time.svelte';
99
import TimeAgo from '$comp/formatters/time-ago.svelte';
10+
import { CodeBlock } from '$comp/typography';
1011
import { Button } from '$comp/ui/button';
1112
import * as Dialog from '$comp/ui/dialog';
1213
import { Skeleton } from '$comp/ui/skeleton';
@@ -484,7 +485,7 @@
484485
<Dialog.Description class="sr-only">Raw JSON representation of the event</Dialog.Description>
485486
</Dialog.Header>
486487
<div class="flex-1 overflow-y-auto rounded-md border p-4">
487-
<pre class="text-xs break-all whitespace-pre-wrap">{JSON.stringify(event, null, 2)}</pre>
488+
<CodeBlock code={JSON.stringify(event, null, 2)} language="json" class="text-xs break-all whitespace-pre-wrap" />
488489
</div>
489490
<Dialog.Footer>
490491
<CopyToClipboardButton size="sm" title="Copy JSON to Clipboard" value={JSON.stringify(event, null, 2)} variant="outline">

0 commit comments

Comments
 (0)
⌂ 换网址