diff options
| author | adamdottv <[email protected]> | 2025-05-15 15:57:15 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-05-15 15:57:15 -0500 |
| commit | c9cca48d087cd512cea0b26a0245cbb1a64981a9 (patch) | |
| tree | 7662068b9b1401b8f5ce49852be8fd4d636ca296 | |
| parent | 3944930fc04a57c3da9c80d9d7377effd1277004 (diff) | |
| download | opencode-c9cca48d087cd512cea0b26a0245cbb1a64981a9.tar.gz opencode-c9cca48d087cd512cea0b26a0245cbb1a64981a9.zip | |
fix: layout
| -rw-r--r-- | internal/tui/components/chat/sidebar.go | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/internal/tui/components/chat/sidebar.go b/internal/tui/components/chat/sidebar.go index f2dec7878..973b03ef1 100644 --- a/internal/tui/components/chat/sidebar.go +++ b/internal/tui/components/chat/sidebar.go @@ -71,8 +71,7 @@ func (m *sidebarCmp) View() string { return baseStyle. Width(m.width). PaddingLeft(4). - PaddingRight(2). - Height(m.height - 1). + PaddingRight(1). Render( lipgloss.JoinVertical( lipgloss.Top, @@ -98,14 +97,9 @@ func (m *sidebarCmp) sessionSection() string { sessionValue := baseStyle. Foreground(t.Text()). - Width(m.width - lipgloss.Width(sessionKey)). 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 { |
