summaryrefslogtreecommitdiffhomepage
path: root/packages/tui/internal/components/chat/editor.go
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-06-13 11:27:05 -0500
committeradamdottv <[email protected]>2025-06-13 11:27:05 -0500
commit10ddd654cff98632c0eb8381611c9784e70283d3 (patch)
tree99d07b375e2bea1fd93e975e1259aa958215f56a /packages/tui/internal/components/chat/editor.go
parent61396b93edd8e93ad45503ca785f94314d9cd4b5 (diff)
downloadopencode-10ddd654cff98632c0eb8381611c9784e70283d3.tar.gz
opencode-10ddd654cff98632c0eb8381611c9784e70283d3.zip
wip: refactoring tui
Diffstat (limited to 'packages/tui/internal/components/chat/editor.go')
-rw-r--r--packages/tui/internal/components/chat/editor.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/tui/internal/components/chat/editor.go b/packages/tui/internal/components/chat/editor.go
index e9414e49a..2e89a7db4 100644
--- a/packages/tui/internal/components/chat/editor.go
+++ b/packages/tui/internal/components/chat/editor.go
@@ -270,6 +270,8 @@ 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.BackgroundSubtle()).
@@ -307,7 +309,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 - 2) // account for info underneath
+ m.textarea.SetHeight(height - 4) // account for info underneath
return nil
}