From ddad02ea9ec6d68b9df99c746264452b2300e271 Mon Sep 17 00:00:00 2001 From: RealDoc06 <73218979+RealDoc06@users.noreply.github.com> Date: Sat, 21 Nov 2026 00:51:26 +0100 Subject: [PATCH] fix(tui): drop the selection bar from the esc menu The bar sat at the left edge of the box, far from the centered labels. The selected item is still shown in bold accent. Co-Authored-By: Claude Opus 5.5 --- internal/tui/panel.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/tui/panel.go b/internal/tui/panel.go index 70c3a29..3898e09 100644 --- a/internal/tui/panel.go +++ b/internal/tui/panel.go @@ -186,8 +186,13 @@ func (m *model) panelView() (x, y int, lines []string, first int) { } else { title = "tg-cli" } + // Centered names need no bar: it would float away from them. for i, p := range mainItems { - body = append(body, m.item(center(pageNames[p], w-3), "", i == m.panel.sel, w-2)) + style := m.st.text + if i == m.panel.sel { + style = m.st.accent.Bold(true) + } + body = append(body, center(style.Render(pageNames[p]), w-2)) } first = len(body) - len(mainItems) case pageSettings: