Skip to content

Commit

Permalink
improve timeline labels
Browse files Browse the repository at this point in the history
  • Loading branch information
ymtdzzz committed Mar 31, 2024
1 parent 5b14d28 commit 2c9b111
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tuiexporter/internal/tui/component/timeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2c9b111

Please sign in to comment.