on main help sign in
fix: add top padding
commit4d6362499f9d86a9ddde6ff5a5abf4411d57c492 authorKujtim Hoxha <kujtimii.h@gmail.com> dateWed 13 Aug 2025, 16:19 (1 year ago) parentd795c00
1 file changed+6−5
internal/tui/components/chat/chat.go+6−5
internal/tui/components/chat/chat.go+6−5
@@ -224,7 +224,7 @@ func (m *messageListCmp) View() string {
224224 t := styles.CurrentTheme()
225225 height := m.height
226226 if m.promptQueue > 0 {
227− height -= 3
227+ height -= 4 // pill height and padding
228228 }
229229 view := []string{
230230 t.S().Base.
@@ -237,7 +237,7 @@ func (m *messageListCmp) View() string {
237237 }
238238 if m.app.CoderAgent != nil && m.promptQueue > 0 {
239239 queuePill := queuePill(m.promptQueue, t)
240− view = append(view, t.S().Base.PaddingLeft(4).Render(queuePill))
240+ view = append(view, t.S().Base.PaddingLeft(4).PaddingTop(1).Render(queuePill))
241241 }
242242 return strings.Join(view, "\n")
243243}
@@ -657,10 +657,11 @@ func (m *messageListCmp) SetSize(width int, height int) tea.Cmd {
657657 m.width = width
658658 m.height = height
659659 if m.promptQueue > 0 {
660− queueHeight := 3
661− return m.listCmp.SetSize(width-2, height-(1+queueHeight))
660+ queueHeight := 3 + 1 // 1 for padding top
661+ lHight := max(0, height-(1+queueHeight))
662+ return m.listCmp.SetSize(width-2, lHight)
662663 }
663− return m.listCmp.SetSize(width-2, height-1) // for padding
664+ return m.listCmp.SetSize(width-2, max(0, height-1)) // for padding
664665}
665666
666667// Blur implements MessageListCmp.