summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-05-15 15:57:15 -0500
committeradamdottv <[email protected]>2025-05-15 15:57:15 -0500
commitc9cca48d087cd512cea0b26a0245cbb1a64981a9 (patch)
tree7662068b9b1401b8f5ce49852be8fd4d636ca296
parent3944930fc04a57c3da9c80d9d7377effd1277004 (diff)
downloadopencode-c9cca48d087cd512cea0b26a0245cbb1a64981a9.tar.gz
opencode-c9cca48d087cd512cea0b26a0245cbb1a64981a9.zip
fix: layout
-rw-r--r--internal/tui/components/chat/sidebar.go10
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 {