diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-11 21:11:17 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-11 21:11:17 +0200 |
| commit | c5ecbb89cf4035923fab6c3bd20ebe6cbcd06d49 (patch) | |
| tree | 77103dcfde5f72145b34006f93317ccf9e33edf5 /internal/showcase/rank_history.go | |
| parent | 414d18f158df079d6526d88ae7c689c8212d4d65 (diff) | |
fix(showcase): compact rank history displayv0.15.2
Diffstat (limited to 'internal/showcase/rank_history.go')
| -rw-r--r-- | internal/showcase/rank_history.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/showcase/rank_history.go b/internal/showcase/rank_history.go index 434332f..7f62453 100644 --- a/internal/showcase/rank_history.go +++ b/internal/showcase/rank_history.go @@ -163,7 +163,7 @@ func movementArrow(currentSpot, olderSpot int) string { return "·" } if currentSpot == olderSpot { - return "→" + return "=" } if currentSpot < olderSpot { return "↑" @@ -184,17 +184,17 @@ func formatRankHistoryForHeader(history []RepoRankHistory) string { spot := fmt.Sprintf("#%d", point.Spot) if i == 0 { - tokens = append(tokens, fmt.Sprintf("%s(%s)", spot, point.Anchor)) + tokens = append(tokens, spot) continue } - tokens = append(tokens, fmt.Sprintf("%s%s(%s)", point.Arrow, spot, point.Anchor)) + tokens = append(tokens, point.Arrow+spot) } if len(tokens) == 0 { return "" } - return " [" + strings.Join(tokens, " ") + "]" + return " · " + strings.Join(tokens, "") } func anchorLabel(i int) string { |
