From fe838f400f7d540d53d7cd8bcf94f26e8d13cb15 Mon Sep 17 00:00:00 2001 From: Matt Low Date: Wed, 10 Jul 2024 01:21:06 +0000 Subject: [PATCH] Minor adjustment to seleted message style --- pkg/tui/views/chat/view.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkg/tui/views/chat/view.go b/pkg/tui/views/chat/view.go index 7f5d74a..e0abb83 100644 --- a/pkg/tui/views/chat/view.go +++ b/pkg/tui/views/chat/view.go @@ -19,7 +19,6 @@ var ( messageHeadingStyle = lipgloss.NewStyle(). MarginTop(1). MarginBottom(1). - PaddingLeft(1). Bold(true) userStyle = lipgloss.NewStyle().Faint(true).Foreground(lipgloss.Color("10")) @@ -111,10 +110,10 @@ func (m *Model) renderMessageHeading(i int, message *api.Message) string { suffix += faint.Render(fmt.Sprintf(" <%d/%d>", selectedReplyIndex+1, len(m.messages[i-1].Replies))) } - if m.focus == focusMessages { - if i == m.selectedMessage { - prefix = "> " - } + if i == m.selectedMessage { + prefix = "> " + } else { + prefix = " " } if message.ID == 0 { @@ -187,7 +186,7 @@ func (m *Model) renderMessage(i int) string { // Only show the tool name when results are hidden toolResults = append(toolResults, renderedResult{ ToolName: result.ToolName, - Result: "(hidden, press ctrl+t to view)", + Result: "(hidden, press ctrl+t to view)", }) } }