summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-06-12 16:04:45 -0500
committeradamdottv <[email protected]>2025-06-12 16:04:45 -0500
commit1031bceef702304dd472c603bf0a54dbd5337f8c (patch)
tree420ba0c10ff0bed980634948225dc4f24faca879
parent653965ef5908a240f6038609e17bc8fa27640203 (diff)
downloadopencode-1031bceef702304dd472c603bf0a54dbd5337f8c.tar.gz
opencode-1031bceef702304dd472c603bf0a54dbd5337f8c.zip
wip: refactoring tui
-rw-r--r--packages/tui/internal/components/chat/editor.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/tui/internal/components/chat/editor.go b/packages/tui/internal/components/chat/editor.go
index ad7d140a6..8d977f5e0 100644
--- a/packages/tui/internal/components/chat/editor.go
+++ b/packages/tui/internal/components/chat/editor.go
@@ -271,8 +271,6 @@ func (m *editorComponent) View() string {
)
textarea = styles.BaseStyle().
Width(m.width).
- PaddingTop(1).
- PaddingBottom(1).
Background(t.BackgroundElement()).
Border(lipgloss.ThickBorder(), false, true).
BorderForeground(t.BorderActive()).
@@ -310,7 +308,7 @@ func (m *editorComponent) SetSize(width, height int) tea.Cmd {
m.width = width
m.height = height
m.textarea.SetWidth(width - 5) // account for the prompt and padding right
- m.textarea.SetHeight(height - 3) // account for info underneath
+ m.textarea.SetHeight(height - 2) // account for info underneath
return nil
}