Browse Source

fix: layout

adamdottv 9 months ago
parent
commit
c9cca48d08
1 changed files with 2 additions and 8 deletions
  1. 2 8
      internal/tui/components/chat/sidebar.go

+ 2 - 8
internal/tui/components/chat/sidebar.go

@@ -71,8 +71,7 @@ func (m *sidebarCmp) View() string {
 	return baseStyle.
 	return baseStyle.
 		Width(m.width).
 		Width(m.width).
 		PaddingLeft(4).
 		PaddingLeft(4).
-		PaddingRight(2).
-		Height(m.height - 1).
+		PaddingRight(1).
 		Render(
 		Render(
 			lipgloss.JoinVertical(
 			lipgloss.JoinVertical(
 				lipgloss.Top,
 				lipgloss.Top,
@@ -98,14 +97,9 @@ func (m *sidebarCmp) sessionSection() string {
 
 
 	sessionValue := baseStyle.
 	sessionValue := baseStyle.
 		Foreground(t.Text()).
 		Foreground(t.Text()).
-		Width(m.width - lipgloss.Width(sessionKey)).
 		Render(fmt.Sprintf(": %s", m.app.CurrentSession.Title))
 		Render(fmt.Sprintf(": %s", m.app.CurrentSession.Title))
 
 
-	return lipgloss.JoinHorizontal(
-		lipgloss.Left,
-		sessionKey,
-		sessionValue,
-	)
+	return sessionKey + sessionValue
 }
 }
 
 
 func (m *sidebarCmp) modifiedFile(filePath string, additions, removals int) string {
 func (m *sidebarCmp) modifiedFile(filePath string, additions, removals int) string {