From 341a3147eca699243fed0a1346ec691563066cf1 Mon Sep 17 00:00:00 2001 From: Ben Brandt Date: Fri, 27 Oct 2023 17:13:23 +0200 Subject: [PATCH] Add header to timeline --- .../components/timeline/SpanDuration.svelte | 42 ++++--------------- .../lib/components/timeline/SpanRow.svelte | 8 ++-- .../lib/components/timeline/SpanTree.svelte | 2 - .../lib/components/timeline/Timeline.svelte | 18 +++++++- log-viewer/src/lib/log.ts | 19 +++++++++ 5 files changed, 48 insertions(+), 41 deletions(-) diff --git a/log-viewer/src/lib/components/timeline/SpanDuration.svelte b/log-viewer/src/lib/components/timeline/SpanDuration.svelte index e2325acd4..ffdd041ea 100644 --- a/log-viewer/src/lib/components/timeline/SpanDuration.svelte +++ b/log-viewer/src/lib/components/timeline/SpanDuration.svelte @@ -1,6 +1,6 @@ -
- -
+ diff --git a/log-viewer/src/lib/components/timeline/SpanRow.svelte b/log-viewer/src/lib/components/timeline/SpanRow.svelte index 07175bc18..7785385ec 100644 --- a/log-viewer/src/lib/components/timeline/SpanRow.svelte +++ b/log-viewer/src/lib/components/timeline/SpanRow.svelte @@ -23,17 +23,17 @@ This is a recursive component that builds itself up by creating sub-trees. --> -
-
+
+
-
+
diff --git a/log-viewer/src/lib/components/timeline/SpanTree.svelte b/log-viewer/src/lib/components/timeline/SpanTree.svelte index 10b220489..bfd68483d 100644 --- a/log-viewer/src/lib/components/timeline/SpanTree.svelte +++ b/log-viewer/src/lib/components/timeline/SpanTree.svelte @@ -34,6 +34,4 @@ {/each} -{:else if level === 0} -

No spans available

{/if} diff --git a/log-viewer/src/lib/components/timeline/Timeline.svelte b/log-viewer/src/lib/components/timeline/Timeline.svelte index 43c71a82c..455f5ea50 100644 --- a/log-viewer/src/lib/components/timeline/Timeline.svelte +++ b/log-viewer/src/lib/components/timeline/Timeline.svelte @@ -1,5 +1,6 @@