From 2c9b111f949660fba96a20190896d4697e02d750 Mon Sep 17 00:00:00 2001 From: "Y.Matsuda" Date: Sun, 31 Mar 2024 11:01:17 +0900 Subject: [PATCH] improve timeline labels --- tuiexporter/internal/tui/component/timeline.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tuiexporter/internal/tui/component/timeline.go b/tuiexporter/internal/tui/component/timeline.go index 2672f62..5ea510c 100644 --- a/tuiexporter/internal/tui/component/timeline.go +++ b/tuiexporter/internal/tui/component/timeline.go @@ -135,7 +135,10 @@ func placeSpan(grid *tview.Grid, node *spanTreeNode, row, depth int, tvs *[]*tvi row++ label := node.label for i := 0; i < depth; i++ { - label = ">" + label + if i == depth-1 { + label = string(tview.BoxDrawingsLightUpAndRight) + label + } + label = " " + label } tv := newTextView(label) *tvs = append(*tvs, tv)