chore: small fixes

Kujtim Hoxha created

Change summary

internal/tui/page/chat/chat.go  | 17 ++---------------
internal/tui/page/chat/pills.go |  2 +-
2 files changed, 3 insertions(+), 16 deletions(-)

Detailed changes

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)
 		}
 

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 {