mirror of
https://github.com/sst/opencode.git
synced 2025-08-04 13:30:52 +00:00
wip: refactoring tui
This commit is contained in:
parent
653965ef59
commit
1031bceef7
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue