Skip to content

Commit c9cca48

Browse files
committed
fix: layout
1 parent 3944930 commit c9cca48

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

internal/tui/components/chat/sidebar.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ func (m *sidebarCmp) View() string {
7171
return baseStyle.
7272
Width(m.width).
7373
PaddingLeft(4).
74-
PaddingRight(2).
75-
Height(m.height - 1).
74+
PaddingRight(1).
7675
Render(
7776
lipgloss.JoinVertical(
7877
lipgloss.Top,
@@ -98,14 +97,9 @@ func (m *sidebarCmp) sessionSection() string {
9897

9998
sessionValue := baseStyle.
10099
Foreground(t.Text()).
101-
Width(m.width - lipgloss.Width(sessionKey)).
102100
Render(fmt.Sprintf(": %s", m.app.CurrentSession.Title))
103101

104-
return lipgloss.JoinHorizontal(
105-
lipgloss.Left,
106-
sessionKey,
107-
sessionValue,
108-
)
102+
return sessionKey + sessionValue
109103
}
110104

111105
func (m *sidebarCmp) modifiedFile(filePath string, additions, removals int) string {

0 commit comments

Comments
 (0)