diff --git a/pkg/tui/tui.go b/pkg/tui/tui.go index b209540..e7782ef 100644 --- a/pkg/tui/tui.go +++ b/pkg/tui/tui.go @@ -204,7 +204,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { m.width = msg.Width m.height = msg.Height m.content.Width = msg.Width - m.input.SetWidth(msg.Width - 1) + m.input.SetWidth(msg.Width) m.rebuildMessageCache() m.updateContent() case msgConversationLoaded: @@ -461,10 +461,17 @@ func initialModel(ctx *lmcli.Context, convShortname string) model { m.input.CharLimit = 0 m.input.Placeholder = "Enter a message" - m.input.FocusedStyle.CursorLine = lipgloss.NewStyle() m.input.ShowLineNumbers = false m.input.SetHeight(4) m.input.Focus() + m.input.FocusedStyle.CursorLine = lipgloss.NewStyle() + m.input.FocusedStyle.Base = lipgloss.NewStyle(). + BorderTop(true). + BorderStyle(lipgloss.NormalBorder()) + m.input.BlurredStyle.Base = lipgloss.NewStyle(). + Faint(true). + BorderTop(true). + BorderStyle(lipgloss.NormalBorder()) m.spinner = spinner.New(spinner.WithSpinner( spinner.Spinner{