summaryrefslogtreecommitdiff
path: root/internal/tui/dashboard/tabs.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-24 10:35:13 +0200
committerPaul Buetow <paul@buetow.org>2026-02-24 10:35:13 +0200
commita403ca152b6268eacf2804c2d857ead16af37ef3 (patch)
tree6df1ebaa0e2a68f2dfc6c17b9987ae8fbff3129c /internal/tui/dashboard/tabs.go
parent791c7aa9e573e80e90ba37e07c8791f280e74d9a (diff)
tui: address review feedback for dashboard and export
Diffstat (limited to 'internal/tui/dashboard/tabs.go')
-rw-r--r--internal/tui/dashboard/tabs.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/tui/dashboard/tabs.go b/internal/tui/dashboard/tabs.go
index 9965d1f..799e9f1 100644
--- a/internal/tui/dashboard/tabs.go
+++ b/internal/tui/dashboard/tabs.go
@@ -1,6 +1,7 @@
package dashboard
import (
+ "fmt"
common "ior/internal/tui/common"
"strings"
@@ -77,8 +78,8 @@ func tabIndex(tab Tab) int {
func renderTabBar(active Tab, width int) string {
parts := make([]string, 0, len(allTabs))
- for _, tab := range allTabs {
- label := tab.String()
+ for i, tab := range allTabs {
+ label := fmt.Sprintf("%d:%s", i+1, tab.String())
if tab == active {
parts = append(parts, common.TabActiveStyle.Render(label))
} else {