From 0aa01a25b992e8ef709b17a91a59c061b74262a3 Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Thu, 11 Dec 2025 17:15:44 +0100 Subject: [PATCH] chore: small fixes --- internal/tui/page/chat/chat.go | 17 ++--------------- internal/tui/page/chat/pills.go | 2 +- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/internal/tui/page/chat/chat.go b/internal/tui/page/chat/chat.go index a4a204648d16183091df4eacf281953d819b1a22..26b83a56695535cf68fa41cf60915c56ecbc6d44 100644 --- a/internal/tui/page/chat/chat.go +++ b/internal/tui/page/chat/chat.go @@ -581,20 +581,7 @@ func (p *chatPage) View() string { if len(pills) > 0 { pillsRow := lipgloss.JoinHorizontal(lipgloss.Top, pills...) - // Add section line only when expanded - if p.pillsExpanded { - // Calculate available width for section line after pills - totalWidth := p.width - SideBarWidth - 4 // -4 for left padding - pillsRowWidth := lipgloss.Width(pillsRow) - availableWidth := totalWidth - pillsRowWidth - - if availableWidth > 0 { - section := sectionLine(availableWidth, t) - // Center the section line vertically with the pills by adding padding - centeredSection := t.S().Base.PaddingTop(1).PaddingBottom(1).Render(section) - pillsRow = lipgloss.JoinHorizontal(lipgloss.Center, pillsRow, " ", centeredSection) - } - } + if expandedList != "" { pillsArea = lipgloss.JoinVertical( @@ -606,7 +593,7 @@ func (p *chatPage) View() string { pillsArea = pillsRow } - style := t.S().Base.MarginTop(1).PaddingLeft(4) + style := t.S().Base.MarginTop(1).PaddingLeft(3) pillsArea = style.Render(pillsArea) } diff --git a/internal/tui/page/chat/pills.go b/internal/tui/page/chat/pills.go index 5440fad633b37d3b60ea8b1bc01c3d967d0d1c27..40a363626946907641ad25bb44a1e9c3df752945 100644 --- a/internal/tui/page/chat/pills.go +++ b/internal/tui/page/chat/pills.go @@ -95,7 +95,7 @@ func todoPill(todos []session.Todo, spinnerView string, focused, pillsPanelFocus } func todoList(sessionTodos []session.Todo, spinnerView string, t *styles.Theme, width int) string { - return t.S().Base.PaddingLeft(1).Render(todos.FormatTodosList(sessionTodos, spinnerView, t, width-1)) + return todos.FormatTodosList(sessionTodos, spinnerView, t, width) } func queueList(queueItems []string, t *styles.Theme) string {