summaryrefslogtreecommitdiffhomepage
path: root/packages/tui/internal/components/commands
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-06-30 14:04:48 -0500
committeradamdottv <[email protected]>2025-06-30 14:04:56 -0500
commit5a107b275ce784405d7ff68e193499e8822fe90d (patch)
tree0b827be922641c6b95631c47758c3a6aed373716 /packages/tui/internal/components/commands
parentdd5736fe5fc463a52d5a82bf513fbcb6b8ae08fd (diff)
downloadopencode-5a107b275ce784405d7ff68e193499e8822fe90d.tar.gz
opencode-5a107b275ce784405d7ff68e193499e8822fe90d.zip
fix(tui): layout issues
Diffstat (limited to 'packages/tui/internal/components/commands')
-rw-r--r--packages/tui/internal/components/commands/commands.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/packages/tui/internal/components/commands/commands.go b/packages/tui/internal/components/commands/commands.go
index 68f6503e0..dbd001497 100644
--- a/packages/tui/internal/components/commands/commands.go
+++ b/packages/tui/internal/components/commands/commands.go
@@ -14,7 +14,6 @@ import (
)
type CommandsComponent interface {
- tea.Model
tea.ViewModel
SetSize(width, height int) tea.Cmd
SetBackgroundColor(color compat.AdaptiveColor)
@@ -43,19 +42,6 @@ func (c *commandsComponent) SetBackgroundColor(color compat.AdaptiveColor) {
c.background = &color
}
-func (c *commandsComponent) Init() tea.Cmd {
- return nil
-}
-
-func (c *commandsComponent) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
- switch msg := msg.(type) {
- case tea.WindowSizeMsg:
- c.width = msg.Width
- c.height = msg.Height
- }
- return c, nil
-}
-
func (c *commandsComponent) View() string {
t := theme.CurrentTheme()