Revert "feat(tui): overhaul latency sparkline scaling, color, and layout"
This reverts commit 63926e2932.
This commit is contained in:
@@ -47,8 +47,6 @@ func computeHistoryStats(changes []models.StateChange) historyStats {
|
||||
return s
|
||||
}
|
||||
|
||||
var stateChangeChars = []rune{'▁', '▂', '▃', '▄', '▅', '▆', '▇', '█'}
|
||||
|
||||
func stateChangeSparkline(changes []models.StateChange, width int) string {
|
||||
if len(changes) < 2 || width < 4 {
|
||||
return ""
|
||||
@@ -93,7 +91,7 @@ func stateChangeSparkline(changes []models.StateChange, width int) string {
|
||||
if idx > 7 {
|
||||
idx = 7
|
||||
}
|
||||
ch := string(stateChangeChars[idx])
|
||||
ch := string(sparkChars[idx])
|
||||
switch {
|
||||
case v >= 3:
|
||||
sb.WriteString(dangerStyle.Render(ch))
|
||||
|
||||
Reference in New Issue
Block a user