summaryrefslogtreecommitdiff
path: root/internal/tui/dashboard/overview.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-26 10:11:37 +0200
committerPaul Buetow <paul@buetow.org>2026-02-26 10:11:37 +0200
commit76db79bbd74ebf58ea4403a7e623316c1e4b41de (patch)
tree20fd850131b6958d95a20aea5ae0c7d3ee3bf8de /internal/tui/dashboard/overview.go
parent8e7f9c656df5ab155648af316635b90dbd53f8d0 (diff)
tui: stabilize overview sparklines and prevent wrap artifacts
Diffstat (limited to 'internal/tui/dashboard/overview.go')
-rw-r--r--internal/tui/dashboard/overview.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/tui/dashboard/overview.go b/internal/tui/dashboard/overview.go
index 9a77da0..990e36d 100644
--- a/internal/tui/dashboard/overview.go
+++ b/internal/tui/dashboard/overview.go
@@ -220,7 +220,7 @@ func summaryBoxInnerWidth(width int) int {
}
func renderOverviewSparkline(label string, data []float64, panelInner int) string {
- w := panelInner - utf8.RuneCountInString(label) - 1
+ w := panelInner - utf8.RuneCountInString(label) - 1 - sparklineSafetyMargin
if w < 8 {
w = 8
}